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:
		@@ -89,7 +89,9 @@ class cloud::selinux (
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  selboolean { $booleans : }
 | 
			
		||||
  selboolean { $booleans :
 | 
			
		||||
    persistent => true,
 | 
			
		||||
  }
 | 
			
		||||
  selmodule { $modules: }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user