[chef] RE: Problems using notification with execute resource


Chronological Thread 
  • From: Matt Ray < >
  • To: " " < >
  • Subject: [chef] RE: Problems using notification with execute resource
  • Date: Thu, 31 Jan 2013 01:28:49 +0000
  • Accept-language: en-US

Which version of Chef are you using? There was a minor release awhile back 
where notifications were broken.

Thanks,
Matt Ray
Senior Technical Evangelist | Opscode Inc.

 | (512) 731-2218
Twitter, IRC, GitHub: mattray

________________________________________
From: 

 

Sent: Wednesday, January 30, 2013 6:37 PM
To: 

Subject: [chef] Problems using notification with execute resource

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.

§