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.
↧