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 3737 }
3838
3939 $_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+ },
4146 default => $repo_location ,
4247 }
4348
8792 }
8893
8994 $_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+ },
91101 default => $repo_location ,
92102 }
93103
You can’t perform that action at this time.
0 commit comments