Hi
https://forge.puppet.com/modules/puppet/zabbix/readme#usage-zabbix-agent2
for agent2
class { 'zabbix::agent':
agent_configfile_path => '/etc/zabbix/zabbix_agent2.conf',
include_dir => '/etc/zabbix/zabbix_agent2.d',
include_dir_purge => false,
zabbix_package_agent => 'zabbix-agent2',
servicename => 'zabbix-agent2',
manage_startup_script => false,
server => '192.168.20.11',
}
Its looking for zabbix/zabbix-agent2-debian.init.erb which is missing
even if I have manage_startup_script to false
Looks like the systemd one is missing too
in startup.pp
elsif $facts['os']['family'] in ['Debian', 'RedHat'] {
# Currently other osfamily without systemd is not supported
$osfamily_downcase = downcase($facts['os']['family'])
file { "/etc/init.d/${service_name}":
ensure => file,
mode => '0755',
content => template("zabbix/${name}-${osfamily_downcase}.init.erb"),
}
Hi
https://forge.puppet.com/modules/puppet/zabbix/readme#usage-zabbix-agent2for agent2
Its looking for zabbix/zabbix-agent2-debian.init.erb which is missing
even if I have manage_startup_script to false
Looks like the systemd one is missing too
in startup.pp