Puppet Class: clamav_cd::params

Summary

Class holds all parameters for the clamav_cd module and is inherited by all classes except defines.

Overview

clamav_cd::params.pp Module name: clamav_cd Author: Arne Teuke (arne_teuke@confdroid.com)

Parameters:

  • reqpackages (Array) (defaults to: ['clamav','clamd'])

    List of packages to install.

  • pkg_ensure (String) (defaults to: 'present')

    which package type to choose, i.e. latest or present.

  • cv_logfile (String) (defaults to: '/var/log/clamd.scan')

    where to log messages for the clamd service.

  • cv_logfileunlock (String) (defaults to: 'no')

    whether log file should be locked for writing -the lock protects against running clamd multiple times

  • cv_logfilemaxsize (String) (defaults to: '2M')

    the max size for the logfile. This also enables logrotation.

  • cv_logtime (String) (defaults to: 'yes')

    Whether to log the time with each message.

  • cv_logclean (String) (defaults to: 'no')

    whether to log clean files. Useful in debugging but drastically increases the log size.

  • cv_logsyslog (String) (defaults to: 'yes')

    Use system logger (can work together with LogFile).

  • cv_logfacility (String) (defaults to: 'LOG_MAIL')

    type of syslog messages - please refer to ‘man syslog’for facility names

  • cv_logverbose (String) (defaults to: 'no')

    Whether to log verbose.

  • cv_logrotate (String) (defaults to: 'yes')

    whether to enable log rotation. Always enabled when LogFileMaxSize is enabled.

  • cv_preludeenable (String) (defaults to: 'no')

    whether to enable prelude output.

  • cv_preludeanalyzername (String) (defaults to: 'ClamAV')

    name of the analyzer used by prelude-admin.

  • cv_tcpsocket (String) (defaults to: '3310')

    socket port

  • cv_tcpaddress (String) (defaults to: 'localhost')

    ip address to listen on



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'manifests/params.pp', line 31

class clamav_cd::params (

# installation
  Array $reqpackages              = ['clamav','clamd'],
  String $pkg_ensure              = 'present',

# clamd
  String $cv_logfile              = '/var/log/clamd.scan',
  String $cv_logfileunlock        = 'no',
  String $cv_logfilemaxsize       = '2M',
  String $cv_logtime              = 'yes',
  String $cv_logclean             = 'no',
  String $cv_logsyslog            = 'yes',
  String $cv_logfacility          = 'LOG_MAIL',
  String $cv_logverbose           = 'no',
  String $cv_logrotate            = 'yes',
  String $cv_preludeenable        = 'no',
  String $cv_preludeanalyzername  = 'ClamAV',
  String $cv_tcpsocket            = '3310',
  String $cv_tcpaddress           = 'localhost',

) {
  # service
  $cv_service             = 'clamd@scan'
  $cv_freshclam           = 'freshclam'

  # dirs
  $cv_config_d_dir        = '/etc/clamd.d'

  # files
  $cv_clamd_config_file   = "${cv_config_d_dir}/scan.conf"
  $cv_clamd_config_erb    = 'clamav_cd/scan_conf.erb'
  $cv_freshclam_file      = '/etc/freshclam.conf'
  $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'

  # includes must be last

  include clamav_cd::main::config
}