Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Remove EL7 support #970

wants to merge 1 commit into from

Conversation

Valantin
Copy link
Contributor

@Valantin Valantin commented Jul 1, 2024

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

manifests/repo.pp Outdated Show resolved Hide resolved
@@ -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 {
Copy link
Member

@bastelfreak bastelfreak Jul 1, 2024

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?

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants