Skip to content

Commit

Permalink
simplify proxy package installation
Browse files Browse the repository at this point in the history
there are no more differences since Zabbix 3.0
  • Loading branch information
evgeni committed Oct 4, 2023
1 parent daf5c24 commit 14ef143
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 deletions manifests/proxy.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 14ef143

Please sign in to comment.