Skip to content

Commit

Permalink
Fix zabbixapi versions
Browse files Browse the repository at this point in the history
Signed-off-by: Christos Papageorgiou <[email protected]>
  • Loading branch information
root-expert committed Mar 6, 2021
1 parent 6266183 commit a54f037
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions manifests/web.pp
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,10 @@
'2.4': {
$zabbixapi_version = '2.4.4'
}
'3.2': {
'3.2' : {
$zabbixapi_version = '3.2.1'
}
'3.4': {
'3.4' : {
$zabbixapi_version = '4.0.0'
}
'4.0': {
Expand All @@ -293,9 +293,12 @@
'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
Expand Down
2 changes: 1 addition & 1 deletion spec/support/acceptance/prepare_host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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;'"
Expand Down

0 comments on commit a54f037

Please sign in to comment.