So... is there a way to execute something categorically at the end of a chef run? I've tried reading the handler docs but I just can't follow them.I would then write a simple web service that would listen and put entries into a database. I noticed however that the URL to be called at the end of the run is executed before resources that were notified with 'delayed' were run, since they always run at the end of a chef run.I was trying to implement a poor mans chef reporting. I had the idea of putting this in a recipe to be run first in the run list:.... and then putting this in a recipe to be run at the end of the run list:
response = Net::HTTP.get_response(URI.parse("http://server?action="start&host=#{node.fqdn}"))
response = Net::HTTP.get_response(URI.parse("http://server?action="end&host=#{node.fqdn}"))
Doug
Archive powered by MHonArc 2.6.16.