On this line:
|
ensure => $zabbix_version, |
The wrong parameter is being used.
The parameter zabbix_version is supposed to be the "major" release of Zabbix (so 6.0 for example). The parameter zabbix_package_state has the actual version (6.0.40 for example).
So now it tries to install zabbix-agent-6.0 and we get errors like this:
Error: Could not update: Execution of 'C:\ProgramData\chocolatey\choco.exe upgrade zabbix-agent --version 6.0 -y --ignore-package-exit-codes --no-progress' returned 1: Chocolatey v0.10.15
Upgrading the following packages:
zabbix-agent
By upgrading you accept licenses for the packages.
A newer version of zabbix-agent (v6.0.40) is already installed.
On this line:
puppet-zabbix/manifests/agent.pp
Line 287 in 0da6ed9
The wrong parameter is being used.
The parameter
zabbix_versionis supposed to be the "major" release of Zabbix (so6.0for example). The parameterzabbix_package_statehas the actual version (6.0.40for example).So now it tries to install zabbix-agent-6.0 and we get errors like this: