diff --git a/manifests/zabbixapi.pp b/manifests/zabbixapi.pp index 3b35f1e6..76bde1f7 100644 --- a/manifests/zabbixapi.pp +++ b/manifests/zabbixapi.pp @@ -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!")