Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #69 from dougneal/fix-apt-deprecation-warning
Browse files Browse the repository at this point in the history
Update usage of `apt::source`
  • Loading branch information
rjw1 committed Feb 7, 2018
2 parents c952eec + 3b24ca4 commit 761eded
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
12 changes: 7 additions & 5 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@

if $repo {
apt::source { 'aptly':
location => 'http://repo.aptly.info',
release => 'squeeze',
repos => 'main',
key_server => $key_server,
key => 'DF32BC15E2145B3FA151AED19E3E53F19C7DE460',
location => 'http://repo.aptly.info',
release => 'squeeze',
repos => 'main',
key => {
'server' => $key_server,
'id' => 'DF32BC15E2145B3FA151AED19E3E53F19C7DE460',
},
}

Apt::Source['aptly'] -> Class['apt::update'] -> Package['aptly']
Expand Down
5 changes: 4 additions & 1 deletion spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@

it "should override apt::source (somekeyserver.com)" do
should contain_apt__source('aptly').with(
:key_server => 'somekeyserver.com',
:key => {
'server' => 'somekeyserver.com',
'id' => 'DF32BC15E2145B3FA151AED19E3E53F19C7DE460'
},
)
end
end
Expand Down

0 comments on commit 761eded

Please sign in to comment.