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
Roberto Valentini committed Jun 27, 2024
1 parent 051f24c commit c7d1cb9
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 c7d1cb9

Please sign in to comment.