how to run puppet based on command output
Hello
I am looking for a way to do the following
Based on the output of a command, need to decide if I want to run the manifest.
I do not want to run the manifest when "cat /var/tmp/check.txt" contains NULL (among other things). I do want to run the manifest when "cat /var/tmp/check.txt" does not contain NULL (among other things).
Seems like its a matter of simply using grep but how to do it with Puppet?
Thanks!
Do you intend to run the manifest or just the resource? e.g. exec If you only need to run the run the `exec` resource for example, you can use the conditional `unless or only_if` parameter of that resource.
@lupin The whole manifest (multiple resources) is dependent upon whether this condition meets or not. Thanks