Does a manual puppet agent run (puppet agent --test) have a defined exit status
to indicate if errors were detected? This is not described by the built-in
help. In two test cases, I have only seen a return code of 2. Both runs made
some changes. One had warnings, the other didn't.
--
Chris Rits
Yes it does, please see
https://www.puppet.com/docs/puppet/7/man/agent.html#usage-notes excerpt
below:
'--test' runs once in the foreground with verbose logging, then exits. It
also exits if it can't get a valid catalog. --test includes the
'--detailed-exitcodes' option by default and exits
https://www.puppet.com/docs/puppet/7/man/agent.html#options
--detailed-exitcodes looks like it might help?
On Mon, 3 Apr 2023, 10:48 Chris Ritson,
wrote:
> Does a manual puppet agent run (puppet agent --test) have a defined exit
> status to indicate if errors were detected? This is not describe
Am Montag, dem 03.04.2023 um 09:47 + schrieb Chris Ritson:
Does a manual puppet agent run (puppet agent --test) have a defined exit status
to indicate if errors were detected? This is not described by the built-in help.
Yes, it is:
* --detailed-exitcodes:
Provide extra information about