Files
confdroid_clamav/manifests/main/files.pp

80 lines
2.0 KiB
ObjectPascal
Raw Normal View History

2026-09-22 11:54:36 +02:00
## confdroid_clamav::main::files.pp
# Module name: confdroid_clamav
# Author: 12ww1160 (12ww1160@confdroid.com)
# @summary Class manages all configuration files required for confdroid_clamav.
##############################################################################
2026-09-22 11:54:36 +02:00
class confdroid_clamav::main::files (
2026-09-22 11:54:36 +02:00
) inherits confdroid_clamav::params {
require confdroid_clamav::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),
notify => Service[$cv_freshclam],
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),
notify => Service[$cv_freshclam],
}
# clamd service config file
file { $cv_clamd_svc :
ensure => file,
owner => 'root',
group => 'root',
mode => '0600',
selrange => s0,
selrole => object_r,
seltype => etc_t,
seluser => system_u,
content => template($cv_clamd_svc_erb),
notify => Service[$cv_service],
2025-06-08 13:38:05 +02:00
}
2025-06-08 15:33:03 +02:00
# shell script for scanning and alerting
file { $cv_shell_script :
ensure => file,
owner => 'root',
group => 'root',
mode => '0750',
selrange => s0,
selrole => object_r,
seltype => etc_t,
seluser => system_u,
content => template($cv_shell_script_erb),
}
}