Skip to content

Instantly share code, notes, and snippets.

@Atalanta
Created September 12, 2014 11:28
Show Gist options
  • Select an option

  • Save Atalanta/a7f124edd7b476d0d615 to your computer and use it in GitHub Desktop.

Select an option

Save Atalanta/a7f124edd7b476d0d615 to your computer and use it in GitHub Desktop.
package_name = "vagrant_#{node['vagrant']['version']}_#{node['kernel']['machine']}.deb"
package_source = File.join(node['vagrant']['base_url'], package_name)
remote_file "#{Chef::Config[:file_cache_path]}/vagrant.deb" do
source package_source
notifies :install, "dpkg_package[vagrant]", :immediately
end
dpkg_package "vagrant" do
source "#{Chef::Config[:file_cache_path]}/vagrant.deb"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment