Files
confdroid_clamav/manifests/main/files.pp

51 lines
1.3 KiB
ObjectPascal
Raw Normal View History

2025-06-08 12:21:40 +02:00
## clamav_cd::main::files.pp
# Module name: clamav_cd
# Author: Arne Teuke (arne_teuke@confdroid.com)
2025-06-08 12:21:40 +02:00
# @summary Class manages all configuration files required for clamav_cd.
##############################################################################
2025-06-08 12:21:40 +02:00
class clamav_cd::main::files (
2025-06-08 12:21:40 +02:00
) inherits clamav_cd::params {
require clamav_cd::main::dirs
2019-12-26 18:32:41 +01:00
# 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),
2025-06-08 13:38:05 +02:00
notify => Service[$cv_service],
2019-12-26 18:32:41 +01:00
}
# 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),
2019-12-26 18:32:41 +01:00
}
2025-06-08 13:38:05 +02:00
# freshclam service config file
file { $cv_freshclam_svc :
ensure => file,
owner => 'root',
group => 'root',
mode => '0600',
selrange => s0,
selrole => object_r,
seltype => etc_t,
seluser => system_u,
content => template($cv_freshclam_svc_erb),
}
}