add shell script for cronjob
This commit is contained in:
@@ -27,11 +27,17 @@
|
||||
# prelude-admin.
|
||||
# @param [String] cv_tcpsocket socket port
|
||||
# @param [String] cv_tcpaddress ip address to listen on
|
||||
# @param [String] cv_alert_email email address to send alerts
|
||||
# @param [String] cv_cron_hour which hour the scan should start
|
||||
# @param [String] cv_cron_minute which minute the scan should start
|
||||
# @param [String] cv_cron_user which user should run the cron job
|
||||
# @param [String] cv_scan_dir which directory should be scanned
|
||||
# @param [String] cv_alert_file location and name of the alert file
|
||||
##############################################################################
|
||||
class clamav_cd::params (
|
||||
|
||||
# installation
|
||||
Array $reqpackages = ['clamav','clamd'],
|
||||
Array $reqpackages = ['clamav','clamd','s-nail'],
|
||||
String $pkg_ensure = 'present',
|
||||
|
||||
# clamd
|
||||
@@ -48,6 +54,13 @@ class clamav_cd::params (
|
||||
String $cv_preludeanalyzername = 'ClamAV',
|
||||
String $cv_tcpsocket = '3310',
|
||||
String $cv_tcpaddress = 'localhost',
|
||||
String $cv_alert_email = 'you@example.com',
|
||||
String $cv_cron_hour = '2',
|
||||
String $cv_cron_minute = '0',
|
||||
String $cv_cron_user = 'root',
|
||||
String $cv_scan_dir = '/',
|
||||
String $cv_alert_file = 'tmp/clamav-alert.txt',
|
||||
|
||||
|
||||
) {
|
||||
# service
|
||||
@@ -64,6 +77,8 @@ class clamav_cd::params (
|
||||
$cv_freshclam_erb = 'clamav_cd/freshclam_conf.erb'
|
||||
$cv_freshclam_svc = '/usr/lib/systemd/system/freshclam.service'
|
||||
$cv_freshclam_svc_erb = 'clamav_cd/freshclam_svc.erb'
|
||||
$cv_shell_script = "${cv_config_d_dir}/scan.sh"
|
||||
$cv_shell_script_erb = 'clamav_cd/scan.sh.erb'
|
||||
|
||||
# includes must be last
|
||||
|
||||
|
||||
Reference in New Issue
Block a user