Skip to content

Instantly share code, notes, and snippets.

@andrewgross
Created April 30, 2012 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewgross/2559107 to your computer and use it in GitHub Desktop.
Save andrewgross/2559107 to your computer and use it in GitHub Desktop.
remote_file "my package" do
path tmp_dpkg_location
source "http://www.remotesite.com/packages/initial/#{node.appfirst_account_id}/package-#{arch}.#{extention}"
ignore_failure true
end
dpkg_package "my package" do
source "#{tmp_dpkg_location}"
only_if "ls #{tmp_dpkg_location} > /dev/null"
action :install
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment