sous-chefs / certificate

Development repository for the certificate cookbook
https://supermarket.chef.io/cookbooks/certificate
73 stars 43 forks source link

only calls updated_by_last_action(true), if the certificate file really was updated #1

Closed ghost closed 11 years ago

ghost commented 12 years ago

The following will restart the 'nginx' service every time chef-client runs, not only if the certificate was actually changed.

certificate_manage 'bla' do
  ...
  notifies :restart, resources(:service => 'nginx')
end

this patch prevents restarting services even though nothing changed, if certificate_manage notifies a service.

tmatilai commented 11 years ago

Would be nice if this could be merged. It would spare a lot of non-needed reload/restarts.