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
Provide correct gpgkey for RHEL family, version > 8. #861
Provide correct gpgkey for RHEL family, version > 8. #861
Conversation
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.
Thanks for the PR! Please add a spec test here to cover the new GPG key
manifests/repo.pp
Outdated
@@ -34,8 +34,13 @@ | |||
} | |||
case $facts['os']['family'] { | |||
'RedHat': { | |||
$gpgkey_zabbix = 'https://repo.zabbix.com/RPM-GPG-KEY-ZABBIX-A14FE591' | |||
$gpgkey_nonsupported = 'https://repo.zabbix.com/RPM-GPG-KEY-ZABBIX-79EA5ED4' | |||
if $facts['os']['release']['major'] > '8' { |
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.
Use versioncmp
here
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.
+1
versioncmp(fact('os.release.full'), '8.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.
Can we move this along? :-) I tried checking out the PR and updating it but I don't seem to have the permissions to do this.
4e6bf2d
to
fcbc1d3
Compare
@root-expert Some of the tests are failing. Can you tell if it has to do with my code? Or are the failures caused by preexisting conditions. |
fcbc1d3
to
7783fa1
Compare
@Joshua-Snapp specs failures seems unrelated, something's broken in postgresql's master branch probably. Please rebase with our master branch before merging. |
Zabbix changed their gpgkey for RHEL operating systems newer than version 8. The new key works for both the "zabbix" and "zabbix_nonsupported" repos.
7783fa1
to
22530fa
Compare
Pull Request (PR) description
This change provides the correct gpgkey for RHEL family operating systems newer than version 8.
The new gpgkey works for both the "zabbix" and the "zabbix_nonsupported" repos.
This was successfully tested on RHEL 9.
This Pull Request (PR) fixes the following issues
Fixes #858