Skip to content

Instantly share code, notes, and snippets.

@whiteley
Created January 7, 2010 22:48
Show Gist options
  • Save whiteley/271681 to your computer and use it in GitHub Desktop.
Save whiteley/271681 to your computer and use it in GitHub Desktop.
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/packages@opscode.com.gpg.key | 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