Skip to content

Instantly share code, notes, and snippets.

@workmad3
Forked from maxmanders/mms-agent.rb
Last active August 29, 2015 13:56
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 workmad3/8953423 to your computer and use it in GitHub Desktop.
Save workmad3/8953423 to your computer and use it in GitHub Desktop.
common_packages = %w(python-setuptools python-dev)
case node['platform']
when "centos", "redhat", "amazon"
platform_packages = common_packages + ['gcc']
when "debian", "ubuntu"
platform_packages = common_packages + ['build-essential']
end
platform_packages.each do |pkg|
package pkg do
action :install
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment