Most of your examples we handle through something like ossec and a 
monitoring package, but you could theoretically do something like:

require pkg::wget

if (! defined(Package['wget']))  {
  exec 'command':  {
  }
}

... which *should* require the resource 'pkg::wget' to be compiled first, 
and then test for the package to be defined.

Unfortunately, my personal experience is that while puppet is very good at 
using conditional logic to generate a catalog, it's not very good at 
generating a catalog that contains conditional logic.

However, the idea of an "onFailure" meta-parameter intrigues me-- similar 
to notify, but only triggers the target resource if the source resource 
fails.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/798f3c35-804f-42a5-b23b-9fc1b6721cc5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to