What are the Puppet exit codes?

book

Article ID: 144237

calendar_today

Updated On:

Products

CA App Synthetic Monitor NIMSOFT CLOUD USER EXPERIENCE MONITOR DX Application Performance Management

Issue/Introduction

Introduction to Puppet Exit Codes. Example 

Please Wait

-----------

 

Installing On-premise Monitoring Station...

 

 

 

===============================================================================

Installation Failed

-------------------

 

Code: 6

Cause

Various Issues.

Environment

Release : 10.1

Component : ASM DOCUMENTATION

Resolution

The code (number) comes directly from Puppet. Previously the installation would fail, too, saying nothing else.

But the Puppet agent error code descriptions from doc is not overly helpful (see --detailed-exitcodes option we use):
 
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.
 
So the only ones useful for our purposes are 0 (But that should never happen unless you run the installer and then immediately run it again) and 2.