Skip to content

Instantly share code, notes, and snippets.

@maxmanders
Created February 12, 2014 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save maxmanders/8953408 to your computer and use it in GitHub Desktop.
Save maxmanders/8953408 to your computer and use it in GitHub Desktop.
common_packages = %w(python-setuptools python-dev)
case node['platform']
when "centos", "redhat", "amazon"
(common_packages + ['gcc']).each do |pkg|
package pkg do
action :install
end
end
when "debian", "ubuntu"
(common_packages + ['build-essential']).each do |pkg|
package pkg do
action :install
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment