add parameters

This commit is contained in:
Arne Teuke
2025-06-08 14:04:15 +02:00
parent 7eb00a8860
commit c2a37553bb
3 changed files with 23 additions and 15 deletions

View File

@@ -21,6 +21,9 @@
"myusername", "myusername",
"preludeanalyzername", "preludeanalyzername",
"preludeenable", "preludeenable",
"safebrowsing" "safebrowsing",
"tcpaddre",
"tcpaddress",
"tcpsocket"
] ]
} }

View File

@@ -25,25 +25,29 @@
# @param [String] cv_preludeenable whether to enable prelude output. # @param [String] cv_preludeenable whether to enable prelude output.
# @param [String] cv_preludeanalyzername name of the analyzer used by # @param [String] cv_preludeanalyzername name of the analyzer used by
# prelude-admin. # prelude-admin.
# @param [String] cv_tcpsocket socket port
# @param [String] cv_tcpaddress ip address to listen on
############################################################################## ##############################################################################
class clamav_cd::params ( class clamav_cd::params (
# installation # installation
Array $reqpackages = ['clamav','clamd'], Array $reqpackages = ['clamav','clamd'],
String $pkg_ensure = 'present', String $pkg_ensure = 'present',
# clamd # clamd
String $cv_logfile = '/var/log/clamd.scan', String $cv_logfile = '/var/log/clamd.scan',
String $cv_logfileunlock = 'no', String $cv_logfileunlock = 'no',
String $cv_logfilemaxsize = '2M', String $cv_logfilemaxsize = '2M',
String $cv_logtime = 'yes', String $cv_logtime = 'yes',
String $cv_logclean = 'no', String $cv_logclean = 'no',
String $cv_logsyslog = 'yes', String $cv_logsyslog = 'yes',
String $cv_logfacility = 'LOG_MAIL', String $cv_logfacility = 'LOG_MAIL',
String $cv_logverbose = 'no', String $cv_logverbose = 'no',
String $cv_logrotate = 'yes', String $cv_logrotate = 'yes',
String $cv_preludeenable = 'no', String $cv_preludeenable = 'no',
String $cv_preludeanalyzername = 'ClamAV', String $cv_preludeanalyzername = 'ClamAV',
String $cv_tcpsocket = '3310',
String $cv_tcpaddress = '127.0.0.1',
) { ) {
# service # service

View File

@@ -12,7 +12,8 @@ LogFacility <%= @cv_logfacility %>
LogVerbose <%= @cv_logverbose %> LogVerbose <%= @cv_logverbose %>
LogRotate <%= @cv_logrotate %> LogRotate <%= @cv_logrotate %>
PreludeEnable <%= @cv_preludeenable %> PreludeEnable <%= @cv_preludeenable %>
TCPSocket <%= @cv_tcpsocket %>
TCPAddr <<%= @cv_tcpaddress %>
# #
# Set the name of the analyzer used by prelude-admin. # Set the name of the analyzer used by prelude-admin.
# Default: ClamAV # Default: ClamAV