18 lines
333 B
Ruby
18 lines
333 B
Ruby
|
|
case node[:platform_family]
|
|
when %r(debian|ubuntu)
|
|
package 'selinux-utils'
|
|
when 'rhel', 'fedora'
|
|
package 'libselinux-utils'
|
|
else
|
|
# implement support for your platform here!
|
|
raise "#{node[:platform_family]} not supported!"
|
|
end
|
|
|
|
directory '/etc/selinux' do
|
|
owner 'root'
|
|
group 'root'
|
|
mode '0755'
|
|
action :create
|
|
end
|