added main config file control
This commit is contained in:
@@ -25,12 +25,19 @@
|
||||
# to choose, i.e. `latest` or `present`.
|
||||
# @param [boolean] sx_install_setools Whether to install additional selinux
|
||||
# tools, i.e. for troubleshooting.
|
||||
# @param [string] sx_selinux_status The desired selinux status. Valid values
|
||||
# are `enforcing`, ``permissive`, `disabled`. Note that changing from disabled
|
||||
# to any othe other types requires a manual reboot to relable the file system.
|
||||
# @param [string] sx_selinux_type The desired selinux type. Valid options are
|
||||
# `targeted`, `minimum` and `mls`.
|
||||
##############################################################################
|
||||
class cd_selinux::params (
|
||||
|
||||
$pkg_ensure = 'latest',
|
||||
|
||||
$sx_install_setools = false,
|
||||
$sx_selinux_status = 'enforcing',
|
||||
$sx_selinux_type = 'targeted',
|
||||
|
||||
) {
|
||||
|
||||
@@ -45,7 +52,12 @@ $reqpackages_tools = $::operatingsystem ? {
|
||||
}
|
||||
|
||||
# directories
|
||||
sx_main_dir = '/etc/selinux'
|
||||
$sx_main_dir = '/etc/selinux'
|
||||
|
||||
# files
|
||||
$sx_main_file = "${sx_main_dir}/config"
|
||||
$sx_main_file_erb = 'cd_selinux/main/selinux_config.erb'
|
||||
|
||||
|
||||
# includes must be last
|
||||
include cd_selinux::main::config
|
||||
|
||||
Reference in New Issue
Block a user