Permalink
Browse files

move key server to apt_repository resource

  • Loading branch information...
1 parent 1de945e commit 1f5882f27ad78402a4a89058d62e53f1a64756b5 @smith smith committed Jan 19, 2012
Showing with 1 addition and 12 deletions.
  1. +1 −12 recipes/debian.rb
View
@@ -1,21 +1,10 @@
include_recipe "apt"
-execute "add newrelic key to gpg" do
- command "gpg --keyserver pgp.mit.edu --homedir /root " +
- "--recv-keys #{node[:newrelic][:key_id]}"
- not_if "gpg --list-keys --homedir /root | grep 'New Relic'"
-end
-
-execute "add newrelic key to apt" do
- command "gpg --homedir /root --armor " +
- "--export #{node[:newrelic][:key_id]} | apt-key add -"
- not_if "apt-key list | grep 'New Relic'"
-end
-
apt_repository "newrelic" do
uri "http://apt.newrelic.com/debian/"
distribution "newrelic"
components [ "non-free" ]
+ keyserver 'pgp.mit.edu'
key node[:newrelic][:key_id]
action :add
end

0 comments on commit 1f5882f

Please sign in to comment.