Squashing the Heisenbugs (really Bohrbugs) is a talk that I gave at the Chariot CI Event on December 1st, 2010. Feel free to ask me any questions about it via email or twitter. Also, please hire us if you're looking for any devops help.
101. template "/etc/mysql/my.cnf" do
source "my.cnf.erb"
owner "root"
group "root"
mode "0644"
notifies :restart,
resources(:service => "mysql"),
:immediately
end
THE RECIPE... PART 3
109. define :apache_conf do
dir = node[:apache][:dir]
template "#{dir}/mods-available/#{params[:name]}.conf" do
source "mods/#{params[:name]}.conf.erb"
notifies :restart, resources(:service => "apache2")
end
end
# In your recipe
apache_conf "mod_ssl"
DEFINITIONS