voxpupuli / puppet-zabbix

Puppet module for creating and maintaining zabbix components with puppet.
https://forge.puppet.com/puppet/zabbix
Apache License 2.0
80 stars 228 forks source link

Zabbix:agent error with module puppet-systemd > 3.3.0 #799

Closed lduriez closed 10 months ago

lduriez commented 2 years ago

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

puppet-zabbix 9.1.0 et puppet-systemd > 3.3.0

What are you seeing

When apply zabbix::agent classes I had the following error :

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Class[Systemd]: expects a value for parameter 'accounting' (file: /etc/puppetlabs/code/environments/production/modules/zabbix/manifests/startup.pp, line: 40, column: 5) (file: /etc/puppetlabs/code/environments/production/modules/zabbix/manifests/agent.pp, line: 439)

When downgraded to puppet-systemd 3.3.0 the error disappear.

In puppet-systemd version 3.4.0 they adding an enhancement about "accounting" I think that's the failure point.

root-expert commented 2 years ago

@lduriez master branch of this module should be fixing this issue.