Skip to content

Commit 14ef143

Browse files
committed
simplify proxy package installation
there are no more differences since Zabbix 3.0
1 parent daf5c24 commit 14ef143

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed

manifests/proxy.pp

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -420,32 +420,11 @@
420420
}
421421
}
422422

423-
# Now we are going to install the correct packages.
424-
case $facts['os']['name'] {
425-
'redhat', 'centos', 'oraclelinux', 'VirtuozzoLinux': {
426-
#There is no zabbix-proxy package in 3.0
427-
if versioncmp('3.0',$zabbix_version) > 0 {
428-
package { 'zabbix-proxy':
429-
ensure => $zabbix_package_state,
430-
require => Package["zabbix-proxy-${db}"],
431-
tag => 'zabbix',
432-
}
433-
}
434-
435-
# Installing the packages
436-
package { "zabbix-proxy-${db}":
437-
ensure => $zabbix_package_state,
438-
tag => 'zabbix',
439-
}
440-
} # END 'redhat','centos','oraclelinux'
441-
default : {
442-
# Installing the packages
443-
package { "zabbix-proxy-${db}":
444-
ensure => $zabbix_package_state,
445-
tag => 'zabbix',
446-
}
447-
} # END default
448-
} # END case $facts['os']['name']
423+
# Installing the packages
424+
package { "zabbix-proxy-${db}":
425+
ensure => $zabbix_package_state,
426+
tag => 'zabbix',
427+
}
449428

450429
# Controlling the 'zabbix-proxy' service
451430
if $manage_service {

0 commit comments

Comments
 (0)