Skip to content

Commit

Permalink
Fix apt-key deprecated message
Browse files Browse the repository at this point in the history
  • Loading branch information
miluxhd committed Aug 26, 2024
1 parent 12d6b62 commit 11b0886
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
23 changes: 15 additions & 8 deletions manifests/package/debian.pp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
apt::source { 'nginx':
location => $stable_repo_source,
repos => 'nginx',
key => { 'id' => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' },
key => {
'name' => 'nginx',
'source' => 'https://nginx.org/keys/nginx_signing.key',
},
release => $release,
architecture => $facts['os']['architecture'],
}
Expand All @@ -42,11 +45,13 @@
default => $repo_source,
}
apt::source { 'nginx':
location => $mainline_repo_source,
repos => 'nginx',
key => { 'id' => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' },
release => $release,
architecture => $facts['os']['architecture'],
location => $mainline_repo_source,
repos => 'nginx',
key => {
'name' => 'nginx',
'source' => 'https://nginx.org/keys/nginx_signing.key',
}, release => $release,
architecture => $facts['os']['architecture'],
}
}
'passenger': {
Expand All @@ -57,10 +62,12 @@
apt::source { 'nginx':
location => $passenger_repo_source,
repos => 'main',
key => { 'id' => '16378A33A6EF16762922526E561F9B9CAC40B2F7' },
key => {
'name' => 'phusionpassenger',
'source' => 'https://oss-binaries.phusionpassenger.com/auto-software-signing-gpg-key.txt',
},
architecture => $facts['os']['architecture'],
}

package { $passenger_package_name:
ensure => $passenger_package_ensure,
require => Exec['apt_update'],
Expand Down
10 changes: 8 additions & 2 deletions spec/classes/nginx_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@
is_expected.to contain_apt__source('nginx').with(
'location' => "https://nginx.org/packages/#{facts[:os]['name'].downcase}",
'repos' => 'nginx',
'key' => { 'id' => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' }
'key' => {
'source' => 'https://nginx.org/keys/nginx_signing.key',

Check failure on line 164 in spec/classes/nginx_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Layout/FirstHashElementIndentation: Use 2 spaces for indentation in a hash, relative to the start of the line where the left curly brace is.
'name' => 'nginx'
}
)
end
end
Expand Down Expand Up @@ -195,7 +198,10 @@
is_expected.to contain_apt__source('nginx').with(
'location' => 'https://oss-binaries.phusionpassenger.com/apt/passenger',
'repos' => 'main',
'key' => { 'id' => '16378A33A6EF16762922526E561F9B9CAC40B2F7' }
'key' => {
'source' => 'https://oss-binaries.phusionpassenger.com/auto-software-signing-gpg-key.txt',

Check failure on line 202 in spec/classes/nginx_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Layout/FirstHashElementIndentation: Use 2 spaces for indentation in a hash, relative to the start of the line where the left curly brace is.
'name' => 'phusionpassenger'
}
)
end
end
Expand Down

0 comments on commit 11b0886

Please sign in to comment.