-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
"checkloaded" exec always schedules build/install on RHEL7 / CentOS 7 #27
Comments
I've determined that this is probably an issue with Facter on RHEL7/CentOS7. The module class is using the fact
I see there's already a bug report in the Facter issues here: https://tickets.puppetlabs.com/browse/FACT-756 ..so I'm assuming this may be an issue with Facter, not your module, but perhaps some workaround could be implemented? Maybe a way to override that variable as a parameter? |
i fixed this on my own system by editing
and changed the
and then changed my selinux rules to specify the policy:
|
Actually the lib/facter code for us had several issues:
So our facter selinux_custom_policy.rb now looks like this: Facter.add(:selinux_custom_policy) do |
@batman1007 confirmed issue on my servers as well. Submitted PR #45. |
Resubmitted after noticing I missed the confine issue + escaping for awk. PR #46 |
As mentioned above, I think that we are seeing an issue with facter 'selinux' returning a string rather than a boolean, hence why we had to quote true in the facter code - it didn't confine correctly otherwise. We're on facter version 1.7.5 and I notice this: Thanks, |
@batman1007 agreed, that's why I added a quoted value in the confine. |
I'm setting up a basic rule, e.g. giving Varnish the
fowner
capability. I've created a module with the following:on the first run it installs it just fine:
...which is great, however on subsequent runs, it seems to be re-building and re-installing it even though the "checkloaded" exec returns successfully:
Is this the intended behaviour? Everything works in the end, so it's not a deal-breaker, but it slows down the puppet agent significantly.
This is running on a CentOS 7.0 VM with Puppet v3.6.2.
Thanks!
The text was updated successfully, but these errors were encountered: