Created
February 2, 2011 14:40
-
-
Save wouterdebie/807766 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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