Commit b939a999 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Allow to specify userParameter options upon instanciation of zabbix agentd.

parent 4da99694
......@@ -79,7 +79,8 @@ class Recipe(BaseSlapRecipe):
self.path_list.append(wrapper)
return cron_d
def installZabbixAgentd(self, ip, port, hostname, server_ip):
def installZabbixAgentd(self, ip, port, hostname, server_ip,
user_parameter_string=''):
log_file = os.path.join(self.log_directory, 'zabbix_agentd.log')
self.registerLogRotation('zabbix_agentd', [log_file])
......@@ -89,7 +90,8 @@ class Recipe(BaseSlapRecipe):
ip=ip,
server=server_ip,
hostname=hostname,
port=port)
port=port,
user_parameter_string=user_parameter_string)
zabbix_agentd_path = self.createConfigurationFile(
"zabbix_agentd.conf",
......
......@@ -229,3 +229,5 @@ ListenIP=%(ip)s
# Mandatory: no
# Default:
# UserParameter=
%(user_parameter_string)s
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment