Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

how to get a correct detailed exit code when using --noop ?

$
0
0
Hi, when running a "dry run" puppet-apply, I would like to get a detailed exit code corresponding to the changes puppet would have made, if running without --noop. i.e. if some change needs to be made - report it and return 2. currently, it will report the changes, **but always return 0 when in --noop.** there was a bug about it https://projects.puppetlabs.com/issues/6322 but no resolution. is there any work around to this? P.S I am running apply as part of a much larger orchestration flow (involving shell and other orchestrators), and would really like to get a simple exit code of "what would have happened", to decide my next step. I'd like to avoid grepping logs if possible since log structure tends to change and isn't reliable.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>