[chef] Problems using notification with execute resource


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef] Problems using notification with execute resource
  • Date: Wed, 30 Jan 2013 16:37:08 -0800 (PST)

I recently tried placing a notification on a cookbook_file resource pointing
toward an execute resource. The documentation at
http://docs.opscode.com/chef/resources.html#notifications gives this example:

notifies :run, "execute[test-nagios-config]", :immediately

I tried using this, but was never able to get it to trigger. I ran across
another example online using this syntax:

notifies :run, resources(:execute => "test-nagios-config"), :immediately

This works like I would expect. Is the example syntax in the documentation
deprecated or am I missing something?



Archive powered by MHonArc 2.6.16.

§