adds file and dirs controls
This commit is contained in:
@@ -26,4 +26,16 @@ class cd_clamav::main::dirs (
|
||||
|
||||
require cd_clamav::main::install
|
||||
|
||||
# config.d dir
|
||||
file { $cv_config_d_dir:
|
||||
ensure => directory,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0755',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -26,5 +26,31 @@ class cd_clamav::main::files (
|
||||
|
||||
require cd_clamav::main::dirs
|
||||
|
||||
# clamd config file
|
||||
file { $cv_clamd_config_file:
|
||||
ensure => file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
content => template($cv_clamd_config_erb),
|
||||
# notify => Service[$cv_service],
|
||||
}
|
||||
|
||||
# freshclam config file
|
||||
file { $cv_freshclam_file:
|
||||
ensure => file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0600',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
content => template($cv_freshclam_erb,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user