File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 37
37
}
38
38
39
39
$_repo_location = $repo_location ? {
40
- undef => " https://repo.zabbix.com/zabbix/${zabbix_version} /rhel/${majorrelease} /\$ basearch/" ,
40
+ undef => versioncmp($zabbix_version , ' 7.2' ) ? {
41
+ # Version older than 7.2
42
+ -1 => " https://repo.zabbix.com/zabbix/${zabbix_version} /stable/rhel/${majorrelease} /\$ basearch/" ,
43
+ # Version 7.2 and newer
44
+ default => " https://repo.zabbix.com/zabbix/${zabbix_version} /rhel/${majorrelease} /\$ basearch/" ,
45
+ },
41
46
default => $repo_location ,
42
47
}
43
48
87
92
}
88
93
89
94
$_repo_location = $repo_location ? {
90
- undef => " http://repo.zabbix.com/zabbix/${zabbix_version} /${operatingsystem} /" ,
95
+ undef => versioncmp($zabbix_version , ' 7.2' ) ? {
96
+ # Version older than 7.2
97
+ -1 => " http://repo.zabbix.com/zabbix/${zabbix_version} /${operatingsystem} /" ,
98
+ # Version 7.2 and newer
99
+ default => " http://repo.zabbix.com/zabbix/${zabbix_version} /stable/${operatingsystem} /" ,
100
+ },
91
101
default => $repo_location ,
92
102
}
93
103
You can’t perform that action at this time.
0 commit comments