Skip to content

Commit bf31470

Browse files
committed
Repository URL change since Zabbix 7.2
1 parent ee8d31f commit bf31470

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

manifests/repo.pp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@
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

@@ -87,7 +92,12 @@
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

0 commit comments

Comments
 (0)