From 6122ab6b43b6377c1a1dd04a1bec654bac79f238 Mon Sep 17 00:00:00 2001 From: Roberto Valentini Date: Thu, 27 Jun 2024 11:02:05 +0200 Subject: [PATCH] fix zabbixapi gem dependency for ruby 2.x --- manifests/zabbixapi.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/manifests/zabbixapi.pp b/manifests/zabbixapi.pp index 3b35f1e66..76bde1f70 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!")