Skip to content

Commit

Permalink
fix zabbixapi gem dependency for ruby 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Valantin committed Jun 27, 2024
1 parent 051f24c commit 6122ab6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions manifests/zabbixapi.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
case $zabbix_version {
/^[56]\.[024]/: {
$zabbixapi_version = '5.0.0-alpha1'
if versioncmp($facts['ruby']['version'] , '3') < 0 {
package { 'public_suffix':
ensure => '5.1.1',
provider => $puppetgem,
}
Package['public_suffix'] -> Package['zabbixapi']
}
}
default: {
fail("Zabbix ${zabbix_version} is not supported!")
Expand Down

0 comments on commit 6122ab6

Please sign in to comment.