Skip to content

Instantly share code, notes, and snippets.

@raycrawford
Created October 6, 2015 18:40
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 raycrawford/1e1dbbe667b480aa02d0 to your computer and use it in GitHub Desktop.
Save raycrawford/1e1dbbe667b480aa02d0 to your computer and use it in GitHub Desktop.
code
puts "###=>INFO: Installing Apache2 on #{node['platform']}"
package 'Install Apache' do
case node['platform']
when 'redhat', 'centos' # ~FC024
package_name 'httpd'
when 'ubuntu', 'debian'
package_name 'apache2'
else
fail "no #{node['platform']} Apache2 package_name defined." if (true)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment