Sha256: 2cc3c85cb666e90dc81156a8636590cc4116c7bd5566ba938b04c87a82af6d21

Contents?: true

Size: 456 Bytes

Versions: 11

Compression:

Stored size: 456 Bytes

Contents

#
# Cookbook:: mu-tools
# Recipe:: selinux
#
# Copyright:: 2019, The Authors, All Rights Reserved.

if !node['application_attributes']['skip_recipes'].include?('selinux') and
   (platform_family?("rhel") or platform_family?("amazon"))

  selinux_state "SELinux Enforcing" do
    action :enforcing
    notifies :request_reboot, 'reboot[now]', :immediately
  end

  reboot 'now' do
    action :nothing
    reason 'Must reboot to enable SELinux.'
  end
 
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cloud-mu-3.6.4 cookbooks/mu-tools/recipes/selinux.rb
cloud-mu-3.6.3 cookbooks/mu-tools/recipes/selinux.rb
cloud-mu-3.5.1 cookbooks/mu-tools/recipes/selinux.rb
cloud-mu-3.5.0 cookbooks/mu-tools/recipes/selinux.rb
cloud-mu-3.4.0 cookbooks/mu-tools/recipes/selinux.rb
cloud-mu-3.3.2 cookbooks/mu-tools/recipes/selinux.rb
cloud-mu-3.3.1 cookbooks/mu-tools/recipes/selinux.rb
cloud-mu-3.3.0 cookbooks/mu-tools/recipes/selinux.rb
cloud-mu-3.2.0 cookbooks/mu-tools/recipes/selinux.rb
cloud-mu-3.1.6 cookbooks/mu-tools/recipes/selinux.rb
cloud-mu-3.1.5 cookbooks/mu-tools/recipes/selinux.rb