Puppet Class: confdroid_clamav::main::config
- Inherits:
- confdroid_clamav::params
- Defined in:
- manifests/main/config.pp
Summary
Class manages all aspects of configuring the module logic for confdroid_clamav.Overview
confdroid_clamav::main::config.pp Module name: confdroid_clamav Author: 12ww1160 (12ww1160@confdroid.com)
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'manifests/main/config.pp', line 7
class confdroid_clamav::main::config (
) inherits confdroid_clamav::params {
include confdroid_clamav::main::service
# Ensure the SELinux boolean antivirus_can_scan_system is enabled if disabled
exec { 'enable_antivirus_can_scan_system':
command => '/usr/sbin/setsebool -P antivirus_can_scan_system 1',
unless => '/usr/sbin/getsebool antivirus_can_scan_system | grep --quiet "on"',
path => ['/usr/sbin', '/bin'],
}
# create a cron job to run a daily scan
cron { 'clamscan':
command => $cv_shell_script,
user => $cv_cron_user,
hour => $cv_cron_hour,
minute => $cv_cron_minute,
}
}
|