]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apt/resources/source.rb
Update HP key
[chef.git] / cookbooks / apt / resources / source.rb
index 2839b29b64c8853d9d63cd7bc6b5d682d6f01436..83fc3577fcd64a0861d8d44c83dcb9d30610c96a 100644 (file)
@@ -24,6 +24,7 @@ attribute :name, :kind_of => String, :name_attribute => true
 attribute :template, :kind_of => String, :default => "default.list.erb"
 attribute :url, :kind_of => String, :required => true
 attribute :key, :kind_of => String
+attribute :key_url, :kind_of => String
 
 def initialize(name, run_context = nil)
   super(name, run_context)
@@ -32,5 +33,5 @@ def initialize(name, run_context = nil)
 end
 
 def after_created
-  notifies :run, "execute[apt-update]", :immediately
+  notifies :run, "execute[apt-update]", :immediately if @action == :create
 end