forked from voxpupuli/puppet-selinux
-
Notifications
You must be signed in to change notification settings - Fork 35
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
RedHat 7 version number comparison is incorrect #16
Comments
on centos 7 there is the same problem: with the variable name modification in init.pp, it works ok |
works for me as well |
$::operatingsystemmajrelease works for us on Centos 7. Thanks |
I was running into the same problem. I was able to fix it with the same fix above. |
Yes, and the error is:
|
This was referenced Jan 4, 2016
maage
pushed a commit
to cybercom-finland/puppet-selinux
that referenced
this issue
Sep 1, 2016
allow packages to be upgraded
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the params.pp file has this:
::operatingsystemrelease < '7'
and on rhel7 facter has these:
operatingsystemmajrelease => 7
operatingsystemrelease => 7.0
So you should likely change the if statement to have the major release changed from:
to
Otherwise you end up comparing string to integer and it doesn't work.
The text was updated successfully, but these errors were encountered: