Skip to content

Instantly share code, notes, and snippets.

@srinivasmohan
Created September 1, 2012 00:07
Show Gist options
  • Save srinivasmohan/3561527 to your computer and use it in GitHub Desktop.
Save srinivasmohan/3561527 to your computer and use it in GitHub Desktop.
Install local deb file via dpkg_package in Chef recipe
cookbook_file "/var/chef-package-cache/glusterfs_3.2.1-1_amd64.deb" do
source "glusterfs_3.2.1-1_amd64.deb"
owner "root"
group "root"
mode "0444"
end
#The following did'nt work.
dpkg_package "glusterfs" do
case node[:platform]
when "debian","ubuntu"
package_name "glusterfs"
source "/var/chef-package-cache/glusterfs_3.2.1-1_amd64.deb"
end
action :install
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment