Issue #3149 has been updated by Nigel Kersten.

Subject changed from notify => to trigger another resource only on failure of 
the current resource to Add a new metaparameter to send notifications on 
failure.
Status changed from Needs Decision to Accepted
Assignee deleted (Nigel Kersten)
Target version set to Telly


----------------------------------------
Feature #3149: Add a new metaparameter to send notifications on failure.
https://projects.puppetlabs.com/issues/3149

Author: Hari Sekhon
Status: Accepted
Priority: Normal
Assignee: 
Category: metaparameters
Target version: Telly
Affected Puppet version: 0.24.8
Keywords: 
Branch: 


I have a resource that I expect to run successfully all the time, and when it's 
not I want it to trigger the run of another resource that otherwise wouldn't 
run.

Basically inverting the success/failure criteria of a notify =>

What I used to do was have a time check exec, and negated the command, with a 
notify such that if the command actually failed (ie the time was out of sync by 
more than a few seconds) it would return success to puppet and that would 
trigger the notify => of another resource to fix the time.

However, once one starts doing reporting, this is not cool since it means that 
resource fails on every run on every machine from puppet's perspective and was 
really not a nice hack. It also litters the logs.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to