Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.21 KB

selinux_install.md

File metadata and controls

45 lines (31 loc) · 1.21 KB

Back to resource list

selinux_install

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

Actions

Action Description
:install (Default) Install required packages
:upgrade Upgrade required packages
:remove Remove any SELinux-related packages

Properties

Name Type Default Description
packages String, Array see default_install_packages SELinux packages for system

Examples

Default installation

selinux_install 'example'

Install with custom packages

selinux_install 'example' do
  packages %w(policycoreutils selinux-policy selinux-policy-targeted)
end

Uninstall

selinux_install 'example' do
  action :remove
end