RHEL7 needs scl packages and on 5.4 version
MODIFY
manifests/web.pp
manifests/web.pp
@@ -366,7 +366,7 @@ class zabbix::web (
}
'CentOS', 'RedHat': {
$zabbix_web_package = 'zabbix-web'
- if ($facts['os']['release']['major'] == '7' and versioncmp($zabbix_version, '5') >= 0) {
+ if ($facts['os']['release']['major'] == '7' and versioncmp($zabbix_version, '5.0') >= 0) {
package { 'zabbix-required-scl-repo':
ensure => 'latest',
name => 'centos-release-scl',

MODIFY
spec/classes/web_spec.rb
spec/classes/web_spec.rb
@@ -80,7 +80,7 @@ describe 'zabbix::web' do
packages = if facts[:osfamily] == 'RedHat'
if facts[:operatingsystemmajrelease].to_i == 7 &&
!%w[VirtuozzoLinux OracleLinux Scientific].include?(facts[:os]['name']) &&
- zabbix_version == '5.0'
+ zabbix_version =~ %r{5\.[024]}
['zabbix-web-pgsql-scl', 'zabbix-web']
else
['zabbix-web-pgsql', 'zabbix-web']

RHEL7 needs scl packages and on 5.4 version

Signed-off-by: Christos Papageorgiou <root.expert.xda@gmail.com>