-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove EL7 support #970
base: master
Are you sure you want to change the base?
Remove EL7 support #970
Conversation
@@ -21,7 +21,7 @@ | |||
case $facts['os']['family'] { | |||
'RedHat': { | |||
$majorrelease = $facts['os']['release']['major'] | |||
if (versioncmp(fact('os.release.major'), '7') >= 0 and $zabbix_version == '7.0') { | |||
if versioncmp($zabbix_version, '7.0') >= 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the whole block still doesn't correct to me. first we check on the zabbix version, then on the OS version and then an else block? Is that correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand the EL repo the logic was
zabbix < 7 on EL <= 8 require ZABBIX-A14FE591 and ZABBIX-79EA5ED4
zabbix < 7 on EL == 9 require ZABBIX-08EFA7DD
zabbix = 7 on EL >= 7 require ZABBIX-B5333005
So I first check if it is zabbix 7.0, then check if is EL9 else the old GPG
initialy it was
if versioncmp(fact('os.release.major'), '9') >= 0 {
$gpgkey_zabbix = 'https://repo.zabbix.com/RPM-GPG-KEY-ZABBIX-08EFA7DD'
$gpgkey_nonsupported = 'https://repo.zabbix.com/RPM-GPG-KEY-ZABBIX-08EFA7DD'
} else {
$gpgkey_zabbix = 'https://repo.zabbix.com/RPM-GPG-KEY-ZABBIX-A14FE591'
$gpgkey_nonsupported = 'https://repo.zabbix.com/RPM-GPG-KEY-ZABBIX-79EA5ED4'
}
I've intruduced the if (versioncmp(fact('os.release.major'), '7') >= 0 and $zabbix_version == '7.0') {
but it had to be if versioncmp($zabbix_version, '7.0') >= 0 {
from the beginning
Pull Request (PR) description
This Pull Request (PR) fixes the following issues