From 865b168bec39d85d1569edddb29b41c997bd93a7 Mon Sep 17 00:00:00 2001 From: jtimberman Date: Tue, 8 Dec 2009 22:48:32 -0700 Subject: [PATCH] cook-222, include apt, then notify when sources update --- metadata.rb | 2 +- recipes/default.rb | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/metadata.rb b/metadata.rb index 4c19c9e..02694a7 100644 --- a/metadata.rb +++ b/metadata.rb @@ -2,6 +2,6 @@ maintainer_email "cookbooks@opscode.com" license "Apache 2.0" description "Sets up sources for ubuntu" -version "0.7" +version "0.8" depends "apt" supports "ubuntu" diff --git a/recipes/default.rb b/recipes/default.rb index 412e10c..9990d51 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -17,10 +17,11 @@ # limitations under the License. # +include_recipe "apt" + template "/etc/apt/sources.list" do mode 0644 variables :code_name => node[:lsb][:codename] + notifies :run, resources(:execute => "apt-get update"), :immediately source "sources.list.erb" end - -include_recipe "apt"