Fix zabbixapi versions
MODIFY
manifests/web.pp
manifests/web.pp
@@ -293,9 +293,12 @@ class zabbix::web (
'4.4': {
$zabbixapi_version = '4.2.0'
}
- default : {
+ /^5\.[02]/: {
$zabbixapi_version = '5.0.0-alpha1'
}
+ default: {
+ fail("Zabbix ${zabbix_version} is not supported!")
+ }
}
# Installing the zabbixapi gem package. We need this gem for

MODIFY
spec/support/acceptance/prepare_host.rb
spec/support/acceptance/prepare_host.rb
@@ -19,7 +19,7 @@ def prepare_host
/opt/puppetlabs/bin/puppet resource package zabbix-web-pgsql-scl ensure=purged
/opt/puppetlabs/bin/puppet resource package zabbix-web-mysql-scl ensure=purged
/opt/puppetlabs/bin/puppet resource package zabbix-frontend-php ensure=purged
- /opt/puppetlabs/bin/puppet/gem uninstall zabbixapi -a
+ /opt/puppetlabs/puppet/bin/gem uninstall zabbixapi -a
rm -f /etc/zabbix/.*done
if id postgres > /dev/null 2>&1; then
su - postgres -c "psql -c 'drop database if exists zabbix_server;'"

Fix zabbixapi versions

Signed-off-by: Christos Papageorgiou <root.expert.xda@gmail.com>