Issue #3149 has been updated by Michael DeHaan. Status changed from Unreviewed to Closed
Hari, With regards to your original request, It seems like the "unless" metaparameter for the Exec task (see http://reductivelabs.com/static_files/TypeReference.html#exec ) could be used to correct the time if it is detected wrong. Take a look at that, and if you have a different use case, let me know. I don't think we should be negating conditions on the graph per se (potentially confusing for people to visualize), but the idea of running "fix this if this says that" is what unless is there for, and seems to cover the use case. If it doesn't please re-open this. Thoughts welcome. ---------------------------------------- Feature #3149: notify => to trigger another resource only on failure of the current resource http://projects.reductivelabs.com/issues/3149 Author: Hari Sekhon Status: Closed Priority: Normal Assigned to: Category: Target version: Affected 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://reductivelabs.com/redmine/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.
