The selinux_install
resource is used to encapsulate the set of selinux packages to install in order to manage selinux. It also ensures the directory /etc/selinux
is created.
Introduced: v4.0.0
Action | Description |
---|---|
:install |
(Default) Install required packages |
:upgrade |
Upgrade required packages |
:remove |
Remove any SELinux-related packages |
Name | Type | Default | Description |
---|---|---|---|
packages |
String, Array | see default_install_packages |
SELinux packages for system |
selinux_install 'example'
selinux_install 'example' do
packages %w(policycoreutils selinux-policy selinux-policy-targeted)
end
selinux_install 'example' do
action :remove
end