Quantcast
Viewing latest article 12
Browse Latest Browse All 75

Installing a package doesn't work. Template values don't get passed to the endpoint.

I created my own module and there's multiple issues that I can't fix. I know there's modules in the forge for this, but I can't get any of them to work and I simply need the agent to install.
1) The zabbix-agent doesn't install, but sudo service zabbix-agent status shows it's running. ps aux | grep zabbix-agent shows no zabbix-agent processes. apt-get install zabbix-agent shows it's already installed.
2) The only thing that seems to work is the template gets pushed without the config variables being set in the node's yaml file. I've used <%= @server %>, etc for the variables
I've tried hard configuring the init.pp with values and it doesn't work either, because the agent isn't really installed?????? 3) After hard coding the values a netstat -nap | grep 10050 shows it's not listening on port 10050 after hard coding it. The puppettest01.dollartree.com.yaml is setup as follows:
I have indentation done correctly but it's not formatting correctly here. classes: - zabbixagent zabbixagent: server: "10.10.10.10" port: '10050' serveractive: '10.10.10.10' zabhostname: 'server01' init.pp is setup as follows. class zabbixagent ( $server = '', $port = '', $serveractive = '', $zabhostname = '', ) { package { 'zabbix-agent':< ensure => installed, } service { 'zabbix-agent': ensure => running, enable => true, require => Package['zabbix-agent'], } file { '/etc/zabbix/zabbix_agentd.conf': notify => Service['zabbix-agent'], ensure => present, content => template('zabbixagent/zabbix_agentd.conf.erb'), } }

Viewing latest article 12
Browse Latest Browse All 75

Trending Articles