Skip to content

Commit bf1f44e

Browse files
miluxhdmilad-24
authored andcommitted
Fix apt-key deprecated message
1 parent 12d6b62 commit bf1f44e

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ This module manages NGINX configuration.
1717

1818
* Puppet 4.6.1 or later. Puppet 3 was supported up until release 0.6.0.
1919
* apt is now a soft dependency. If your system uses apt, you'll need to
20-
configure an appropriate version of the apt module. Version 4.4.0 or higher is
21-
recommended because of the proper handling of `apt-transport-https`.
20+
configure an appropriate version of the apt module. Version 9.2.0 or higher is
21+
recommended because of supporting "modern keyrings".
2222

2323
### Additional Documentation
2424

manifests/package/debian.pp

+12-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@
3131
apt::source { 'nginx':
3232
location => $stable_repo_source,
3333
repos => 'nginx',
34-
key => { 'id' => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' },
34+
key => {
35+
'name' => 'nginx.asc',
36+
'source' => 'https://nginx.org/keys/nginx_signing.key',
37+
},
3538
release => $release,
3639
architecture => $facts['os']['architecture'],
3740
}
@@ -44,7 +47,10 @@
4447
apt::source { 'nginx':
4548
location => $mainline_repo_source,
4649
repos => 'nginx',
47-
key => { 'id' => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' },
50+
key => {
51+
'name' => 'nginx.asc',
52+
'source' => 'https://nginx.org/keys/nginx_signing.key',
53+
},
4854
release => $release,
4955
architecture => $facts['os']['architecture'],
5056
}
@@ -57,10 +63,12 @@
5763
apt::source { 'nginx':
5864
location => $passenger_repo_source,
5965
repos => 'main',
60-
key => { 'id' => '16378A33A6EF16762922526E561F9B9CAC40B2F7' },
66+
key => {
67+
'name' => 'phusionpassenger.asc',
68+
'source' => 'https://oss-binaries.phusionpassenger.com/auto-software-signing-gpg-key.txt',
69+
},
6170
architecture => $facts['os']['architecture'],
6271
}
63-
6472
package { $passenger_package_name:
6573
ensure => $passenger_package_ensure,
6674
require => Exec['apt_update'],

spec/classes/nginx_spec.rb

+8-2
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@
160160
is_expected.to contain_apt__source('nginx').with(
161161
'location' => "https://nginx.org/packages/#{facts[:os]['name'].downcase}",
162162
'repos' => 'nginx',
163-
'key' => { 'id' => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' }
163+
'key' => {
164+
'source' => 'https://nginx.org/keys/nginx_signing.key',
165+
'name' => 'nginx.asc'
166+
}
164167
)
165168
end
166169
end
@@ -195,7 +198,10 @@
195198
is_expected.to contain_apt__source('nginx').with(
196199
'location' => 'https://oss-binaries.phusionpassenger.com/apt/passenger',
197200
'repos' => 'main',
198-
'key' => { 'id' => '16378A33A6EF16762922526E561F9B9CAC40B2F7' }
201+
'key' => {
202+
'source' => 'https://oss-binaries.phusionpassenger.com/auto-software-signing-gpg-key.txt',
203+
'name' => 'phusionpassenger.asc'
204+
}
199205
)
200206
end
201207
end

0 commit comments

Comments
 (0)