Skip to content

Instantly share code, notes, and snippets.

@charlesjohnson
Last active December 26, 2015 02:08
Show Gist options
  • Save charlesjohnson/7075660 to your computer and use it in GitHub Desktop.
Save charlesjohnson/7075660 to your computer and use it in GitHub Desktop.
%w(apache2 ntp sshd).each do |pkg|
package pkg do
action :install
end
end
package "apache2" do
action :install
end
template "/etc/apache2/httpd.conf" do
source "httpd.conf.erb"
owner "root"
group "root"
mode "0644"
end
service "apache2" do
supports :status => true, :restart => true, :reload => true
action [ :enable, :start ]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment