X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f6c6fe0e03625c4d906f3b98b5b6933f5d781533..bd08729fe0c15a4769332a352cc3723dee13aa24:/cookbooks/apt/definitions/apt_source.rb diff --git a/cookbooks/apt/definitions/apt_source.rb b/cookbooks/apt/definitions/apt_source.rb index f98b2b22c..cc847a01e 100644 --- a/cookbooks/apt/definitions/apt_source.rb +++ b/cookbooks/apt/definitions/apt_source.rb @@ -18,7 +18,7 @@ # define :apt_source do - if node.apt.sources.include?(params[:name]) + if node[:apt][:sources].include?(params[:name]) source_action = :create if params[:key] @@ -37,7 +37,7 @@ define :apt_source do owner "root" group "root" mode 0644 - notifies :run, resources(:execute => "apt-update") + notifies :run, "execute[apt-update]" variables :url => params[:url] end end