for config in [ “contacts.cfg”, “contactgroups.cfg” ] do remote_file “/etc/nagios3/#{config}” do source “#{config}” owner “root” group “root” mode 0644 notifies :restart, resources(:service => “nagios”), :delayed end end Write it in the order you want it to run
Chef executes resources in the order they appear in a recipe. Coming to Chef from Puppet, I found […]
Recent Comments