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

Fix usage of non-existent $selinux_enabled fact #159

Merged
merged 2 commits into from
Dec 28, 2016
Merged

Fix usage of non-existent $selinux_enabled fact #159

merged 2 commits into from
Dec 28, 2016

Conversation

vinzent
Copy link
Contributor

@vinzent vinzent commented Dec 28, 2016

The fact is in fact called $::selinux not $::selinux_enabled.

It was not caught by the spec test because it was specified in
default_module_facts.yaml.

And there is only a WIP accetpance test for disabled to enforcing
switch which will check this too in future.

The existing acceptance tests for centos-72-x64 and
centos-66-x64 discovered no problems with this PR.

If selinux is disabled on a host only the $::selinux (new:
$::os['selinux']['enabled']) fact is available.

To be able to delete them in the spec test they don't need to
be listed in the defaults_(module_)?facts.yaml files.
The fact is in fact called $::selinux not $::selinux_enabled.

It was not caught by the spec test because it was specified in
default_module_facts.yaml.

And there is only a WIP accetpance test for disabled to enforcing
switch which will check this too in future.
@bastelfreak bastelfreak merged commit d134e73 into voxpupuli:master Dec 28, 2016
@bastelfreak
Copy link
Member

thanks!

@vinzent vinzent deleted the fix_selinux_fact_usage branch December 28, 2016 22:09
EmRowlands pushed a commit to EmRowlands/puppet-selinux that referenced this pull request Mar 29, 2023
Fix usage of non-existent $::selinux_enabled fact
@smortex smortex changed the title Fix usage of non-existent $::selinux_enabled fact Fix usage of non-existent $selinux_enabled fact Nov 23, 2023
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