Skip to content

Commit

Permalink
Repository URL change since Zabbix 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Safranil committed Dec 14, 2024
1 parent ee8d31f commit bf31470
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@
}

$_repo_location = $repo_location ? {
undef => "https://repo.zabbix.com/zabbix/${zabbix_version}/rhel/${majorrelease}/\$basearch/",
undef => versioncmp($zabbix_version, '7.2') ? {
# Version older than 7.2
-1 => "https://repo.zabbix.com/zabbix/${zabbix_version}/stable/rhel/${majorrelease}/\$basearch/",
# Version 7.2 and newer
default => "https://repo.zabbix.com/zabbix/${zabbix_version}/rhel/${majorrelease}/\$basearch/",
},
default => $repo_location,
}

Expand Down Expand Up @@ -87,7 +92,12 @@
}

$_repo_location = $repo_location ? {
undef => "http://repo.zabbix.com/zabbix/${zabbix_version}/${operatingsystem}/",
undef => versioncmp($zabbix_version, '7.2') ? {
# Version older than 7.2
-1 => "http://repo.zabbix.com/zabbix/${zabbix_version}/${operatingsystem}/",
# Version 7.2 and newer
default => "http://repo.zabbix.com/zabbix/${zabbix_version}/stable/${operatingsystem}/",
},
default => $repo_location,
}

Expand Down

0 comments on commit bf31470

Please sign in to comment.