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

Strict variables fix for selinux_config_mode #326

Merged
merged 1 commit into from
Dec 7, 2016

Conversation

alexjfisher
Copy link
Member

Fixes #GH-325

@@ -3,4 +3,3 @@ concat_basedir: "/tmp"
ipaddress: "172.16.254.254"
is_pe: false
macaddress: "AA:AA:AA:AA:AA:AA"
selinux_config_mode: "disabled"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was making the tests pass even though on systems with selinux disabled, this fact doesn't exist.

You'd have thought the fact would return disabled, but if the selinux fact is false, the selinux_config_mode fact isn't returned at all.
The facter 3 code is a bit difficult to read, but in facter 2 there's a confine :selinux => true

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is managed via msycn, we should probably also remove it there.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh really, all modules get this fact set?

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

Successfully merging this pull request may close these issues.

2 participants