Skip to content

Instantly share code, notes, and snippets.

@wouterdebie
Created February 2, 2011 14:40
Show Gist options
  • Save wouterdebie/807766 to your computer and use it in GitHub Desktop.
Save wouterdebie/807766 to your computer and use it in GitHub Desktop.
execute "apt-get update" do
action :nothing
end
execute "curl -s http://archive.cloudera.com/debian/archive.key | apt-key add -" do
not_if "apt-key export 'Cloudera Apt Repository' | grep PUBLIC"
notifies :run, resources(:execute => "apt-get update"), :immediately
end
template "/etc/apt/sources.list.d/cloudera.list" do
owner "root"
mode "0644"
source "cloudera.list.erb"
notifies :run, resources(:execute => "apt-get update"), :immediately
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment