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 with one of the following exit codes: - 0: The run succeeded with no changes or failures; the system was already in the desired state. - 1: The run failed, or wasn't attempted due to another run already in progress. - 2: The run succeeded, and some resources were changed. - 4: The run succeeded, and some resources failed. - 6: The run succeeded, and included both changes and failures. Marty On Monday, April 3, 2023 at 10:48:11 AM UTC+1 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 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 Ritson (School of Computing and NUIT Cybersecurity team) > Newcastle University, NE1 7RU > Tel: +44(0)1912080073 <+44%20191%20208%200073> > > -- 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/71c4aa87-4d19-4b33-a244-3e9b43f361e8n%40googlegroups.com.
