Created
January 7, 2010 22:48
-
-
Save whiteley/271681 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include_recipe "chef::client" | |
execute "apt-get update" do | |
action :nothing | |
end | |
template "/etc/apt/sources.list.d/opscode.list" do | |
owner "root" | |
mode "0644" | |
source "opscode.list.erb" | |
notifies :run, resources("execute[apt-get update]"), :immediately | |
end | |
package "curl" do | |
action :install | |
end | |
execute "curl -s http://apt.opscode.com/[email protected] | apt-key add -" do | |
not_if "apt-key export 'Opscode Packages'" | |
end | |
package "chef" do | |
action :upgrade | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment