2017-07-20 13:07:11 +01:00
|
|
|
## cd_selinux::main::files.pp
|
|
|
|
|
# Module name: cd_selinux
|
|
|
|
|
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
|
|
|
|
|
# @summary Class manages all configuration files required for cd_selinux.
|
|
|
|
|
##############################################################################
|
|
|
|
|
class cd_selinux::main::files (
|
|
|
|
|
|
|
|
|
|
) inherits cd_selinux::params {
|
|
|
|
|
require cd_selinux::main::dirs
|
|
|
|
|
|
|
|
|
|
file { $sx_main_file:
|
2025-05-14 13:34:43 +02:00
|
|
|
ensure => file,
|
|
|
|
|
path => $sx_main_file,
|
|
|
|
|
owner => 'root',
|
|
|
|
|
group => 'root',
|
|
|
|
|
mode => '0644',
|
|
|
|
|
selrange => s0,
|
|
|
|
|
selrole => object_r,
|
|
|
|
|
seltype => selinux_config_t,
|
|
|
|
|
seluser => system_u,
|
|
|
|
|
content => template($sx_main_file_erb),
|
2017-07-20 13:07:11 +01:00
|
|
|
}
|
|
|
|
|
}
|