Created
November 16, 2010 21:39
-
-
Save jtimberman/702564 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
| file "/etc/apt/sources.list.d/my-ppa.list" do | |
| content "deb http://ppa.launchpad.net/USER/ppa/ubuntu lucid main" | |
| owner "root" | |
| group "root" | |
| mode 0644 | |
| end | |
| execute "Add PPA key" do | |
| command "apt-key adv --keyserver keyserver.ubuntu.com --recv-keys KEY" | |
| not_if "apt-key list | grep -xq '.*1024R/KEY.*'" | |
| end | |
| execute "apt-get update" do | |
| action :nothing | |
| subscribes :run, resources(:execute => "Add PPA key"), :immediately | |
| subscribes :run, resources(:file => "/etc/apt/sources.list.d/my-ppa.list"), :immediately | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment