From 14ef143fc4abd88b27bc03dc9b6a60f07c39908e Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 4 Oct 2023 09:16:21 +0200 Subject: [PATCH] simplify proxy package installation there are no more differences since Zabbix 3.0 --- manifests/proxy.pp | 31 +++++-------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/manifests/proxy.pp b/manifests/proxy.pp index ccc385448..f2a6f1913 100644 --- a/manifests/proxy.pp +++ b/manifests/proxy.pp @@ -420,32 +420,11 @@ } } - # Now we are going to install the correct packages. - case $facts['os']['name'] { - 'redhat', 'centos', 'oraclelinux', 'VirtuozzoLinux': { - #There is no zabbix-proxy package in 3.0 - if versioncmp('3.0',$zabbix_version) > 0 { - package { 'zabbix-proxy': - ensure => $zabbix_package_state, - require => Package["zabbix-proxy-${db}"], - tag => 'zabbix', - } - } - - # Installing the packages - package { "zabbix-proxy-${db}": - ensure => $zabbix_package_state, - tag => 'zabbix', - } - } # END 'redhat','centos','oraclelinux' - default : { - # Installing the packages - package { "zabbix-proxy-${db}": - ensure => $zabbix_package_state, - tag => 'zabbix', - } - } # END default - } # END case $facts['os']['name'] + # Installing the packages + package { "zabbix-proxy-${db}": + ensure => $zabbix_package_state, + tag => 'zabbix', + } # Controlling the 'zabbix-proxy' service if $manage_service {