Skip to content

Commit

Permalink
Explicitly set key and keyserver, so we don't make a request to get.d…
Browse files Browse the repository at this point in the history
…ocker.io on every chef run.
  • Loading branch information
sethrosenblum committed Oct 28, 2014
1 parent 383cc5f commit 1976289
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@
},
'default' => nil
)
default['docker']['package']['repo_key'] = 'https://get.docker.io/gpg'
default['docker']['package']['repo_keyserver'] = 'keyserver.ubuntu.com'
# Found at https://get.docker.io/ubuntu/
default['docker']['package']['repo_key'] = 'A88D21E9'

## Source installation attributes

Expand Down
1 change: 1 addition & 0 deletions recipes/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
uri node['docker']['package']['repo_url']
distribution node['docker']['package']['distribution']
components ['main']
keyserver node['docker']['package']['repo_keyserver']
key node['docker']['package']['repo_key']
end
end
Expand Down
3 changes: 2 additions & 1 deletion spec/package_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
uri: 'https://get.docker.io/ubuntu',
distribution: 'docker',
components: ['main'],
key: 'https://get.docker.io/gpg'
keyserver: 'keyserver.ubuntu.com',
key: 'A88D21E9'
)
end

Expand Down

0 comments on commit 1976289

Please sign in to comment.