Skip to content

Commit

Permalink
Add new RPM GPG key for zabbix-3.2 and higher.
Browse files Browse the repository at this point in the history
  • Loading branch information
yevtushenko committed Oct 19, 2016
1 parent 9efaf84 commit 658285f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,20 @@

case $::osfamily {
'RedHat' : {
# Zabbix-3.2 and newer RPMs are signed with the GPG key
if versioncmp($zabbix_version, '3.2') < 0 {
$gpgkey = 'http://repo.zabbix.com/RPM-GPG-KEY'
}
else {
$gpgkey = 'http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX-A14FE591'
}

yumrepo { 'zabbix':
name => "Zabbix_${reponame}_${::architecture}",
descr => "Zabbix_${reponame}_${::architecture}",
baseurl => "http://repo.zabbix.com/zabbix/${zabbix_version}/rhel/${majorrelease}/\$basearch/",
gpgcheck => '1',
gpgkey => 'http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX',
gpgkey => $gpgkey,
priority => '1',
}

Expand All @@ -66,7 +74,7 @@
descr => "Zabbix_nonsupported_${reponame}_${::architecture}",
baseurl => "http://repo.zabbix.com/non-supported/rhel/${majorrelease}/\$basearch/",
gpgcheck => '1',
gpgkey => 'http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX',
gpgkey => $gpgkey,
priority => '1',
}

Expand Down

0 comments on commit 658285f

Please sign in to comment.