Skip to content

Instantly share code, notes, and snippets.

@johnfitzpatrick
Created December 14, 2017 08:27
Show Gist options
  • Save johnfitzpatrick/7b8dff6831de1cd24a2ee8dc639a004d to your computer and use it in GitHub Desktop.
Save johnfitzpatrick/7b8dff6831de1cd24a2ee8dc639a004d to your computer and use it in GitHub Desktop.
Intermediate_Slide11.14.rb
directory '/srv/httpd/admins/html' do
recursive true
mode '0755'
end
template '/etc/httpd/conf.d/admins.conf' do
source 'conf.erb'
mode '0644'
variables(document_root: '/srv/httpd/admins/html',port: 8080)
notifies :restart, 'service[httpd]'
end
file '/srv/apache/admins/html/index.html' do
content '<h1>Welcome admins!</h1>'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment