SElinux: ensure persistence

Ensure persistence for SElinux booleans so they still exist after an
evental reboot.

Default is to false:
https://github.com/puppetlabs/puppet/blob/master/lib/puppet/type/selboolean.rb#L21

Also, fix an error in unit tests where context names were switched.

Change-Id: I3c9c48fa3aee0b1991780f7250c40aba6e493498
This commit is contained in:
Emilien Macchi
2015-01-29 01:29:24 -05:00
parent 22b220dbe0
commit 613284b444
2 changed files with 5 additions and 3 deletions

View File

@@ -89,7 +89,9 @@ class cloud::selinux (
}
}
selboolean { $booleans : }
selboolean { $booleans :
persistent => true,
}
selmodule { $modules: }
}

View File

@@ -22,7 +22,7 @@ describe 'cloud::selinux' do
shared_examples_for 'manage selinux' do
context 'with selinux disabled' do
context 'with selinux enforcing' do
before :each do
facts.merge!( :selinux_current_mode => 'enforcing' )
end
@@ -54,7 +54,7 @@ describe 'cloud::selinux' do
end
context 'with selinux enforcing' do
context 'with selinux disabled' do
before :each do
facts.merge!( :selinux => 'false' )
end