Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

cook-222, include apt, then notify when sources update

  • Loading branch information...
commit 865b168bec39d85d1569edddb29b41c997bd93a7 1 parent 79b51a8
Joshua Timberman authored December 08, 2009
2  metadata.rb
@@ -2,6 +2,6 @@
2 2
 maintainer_email  "cookbooks@opscode.com"
3 3
 license           "Apache 2.0"
4 4
 description       "Sets up sources for ubuntu"
5  
-version           "0.7"
  5
+version           "0.8"
6 6
 depends           "apt"
7 7
 supports          "ubuntu"
5  recipes/default.rb
@@ -17,10 +17,11 @@
17 17
 # limitations under the License.
18 18
 #
19 19
 
  20
+include_recipe "apt"
  21
+
20 22
 template "/etc/apt/sources.list" do
21 23
   mode 0644
22 24
   variables :code_name => node[:lsb][:codename]
  25
+  notifies :run, resources(:execute => "apt-get update"), :immediately
23 26
   source "sources.list.erb"
24 27
 end
25  
-
26  
-include_recipe "apt"

0 notes on commit 865b168

Please sign in to comment.
Something went wrong with that request. Please try again.