Skip to content

Commit e6c6d7d

Browse files
committed
Added new GPG key support for openresty
1 parent a82c4b7 commit e6c6d7d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

manifests/package/redhat.pp

+6-1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@
125125
default => 'rhel'
126126
}
127127

128+
$repo_gpgkey = $facts['os']['release']['major'] ? {
129+
'9' => 'https://openresty.org/package/pubkey2.gpg',
130+
default => 'https://openresty.org/package/pubkey.gpg',
131+
}
132+
128133
# https://openresty.org/en/linux-packages.html
129134
yumrepo { 'openresty':
130135
baseurl => "https://openresty.org/package/${_os_resty}/\$releasever/\$basearch",
@@ -133,7 +138,7 @@
133138
enabled => '1',
134139
gpgcheck => '1',
135140
repo_gpgcheck => '0',
136-
gpgkey => 'https://openresty.org/package/pubkey.gpg',
141+
gpgkey => $repo_gpgkey,
137142
sslverify => $sslverify,
138143
before => Package['nginx'],
139144
notify => Exec['yum-clean-b114182'],

0 commit comments

Comments
 (0)