File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 11{
22 "description" : " Run the Puppet agent one time" ,
33 "parameters" : {
4+ "environment" : {
5+ "type" : " Optional[String]" ,
6+ "description" : " If set, run Puppet in specified code environment"
7+ },
48 "noop" : {
59 "type" : " Optional[Boolean]" ,
610 "description" : " If true, run Puppet in no-op mode"
Original file line number Diff line number Diff line change 66# Parse noop parameter
77[ " $PT_noop " = " true" ] && NOOP_FLAG=" --noop" || unset NOOP_FLAG
88
9+ # Parse environment parameter
10+ [ -n " $PT_environment " ] && ENV_FLAG=" --environment $PT_environment " || unset ENV_FLAG
11+
912# Wait for up to five minutes for an in-progress Puppet agent run to complete
1013# TODO: right now the check is just for lock file existence. Improve the check
1114# to account for situations where the lockfile is stale.
3538 --no-use_cached_catalog \
3639 --detailed-exitcodes \
3740 --color false \
41+ $ENV_FLAG \
3842 $NOOP_FLAG
3943
4044# Only exit non-zero if an error occurred. Changes (detailed exit code 2) are
You can’t perform that action at this time.
0 commit comments