Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selinux_custom_policy.rb:8: syntax error, unexpected ':', expecting kEND #76

Closed
sharkannon opened this issue Dec 15, 2015 · 3 comments
Closed

Comments

@sharkannon
Copy link

`selinux_custom_policy.rb:8: syntax error, unexpected ':', expecting kEND
confine kernel: 'Linux', osfamily: 'RedHat', ...
^

selinux_custom_policy.rb:8: syntax error, unexpected ',', expecting kEND
confine kernel: 'Linux', osfamily: 'RedHat', operating...
^

selinux_custom_policy.rb:8: syntax error, unexpected ',', expecting kEND
...: 'Linux', osfamily: 'RedHat', operatingsystemmajrelease: '7...
^

selinux_custom_policy.rb:8: syntax error, unexpected ',', expecting kEND
...peratingsystemmajrelease: '7', selinux: ['true', true]
^`

We get this when running this on:
OS: Centos 6.6
Ruby: 1.8.7
Facter 2.4.4
Puppet: 3.7.5
puppet-selinux: 0.3.0

I did some quick checks and it appears that the confine syntax may be wrong (at least for our version of ruby etc).. looking at the puppet docs it should be something like

confine :kernel => 'Linux'

@Thubo
Copy link
Contributor

Thubo commented Dec 16, 2015

I can confirm that issue, running on

OS: Centos 6.7
Ruby: 1.8.7
Facter 2.4.4
Puppet: 3.8.4
puppet-selinux: 0.3.0

jfryman added a commit that referenced this issue Dec 21, 2015
@jkroepke
Copy link
Contributor

Hi!

This issue has been fixed by the pr. It this possible to publish 0.3.1 to forge?

@Rican7
Copy link

Rican7 commented Feb 2, 2016

Yea, seems like this has been fixed. A 0.3.1 release would be helpful. 😃

@jfryman jfryman closed this as completed Mar 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants