Skip to content

Commit

Permalink
Merge pull request #417 from marcIhm/main
Browse files Browse the repository at this point in the history
make configurable: timeout to wait for in-progress run
  • Loading branch information
Jo-Lillie authored Jan 11, 2024
2 parents 7b98a72 + 3ab6c2b commit 19989d1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1352,6 +1352,12 @@ Data type: `Optional[Boolean]`

If true, run Puppet in no-op mode

##### `in_progress_timeout`

Data type: `Integer[1]`

How many seconds to wait for a puppet run, that is already in progress

### <a name="rbac_token"></a>`rbac_token`

Get and save an rbac token for the root user, admin rbac user
Expand Down
5 changes: 5 additions & 0 deletions tasks/puppet_runonce.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"noop": {
"type": "Optional[Boolean]",
"description": "If true, run Puppet in no-op mode"
},
"in_progress_timeout": {
"type": "Integer[1]",
"description": "How many seconds to wait for a puppet run, that is already in progress",
"default": 600
}
},
"input_method": "environment",
Expand Down
2 changes: 1 addition & 1 deletion tasks/puppet_runonce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
echo -n "Check for and wait up to 5 minutes for in-progress run to complete"
lockfile=$(/opt/puppetlabs/bin/puppet config print agent_catalog_run_lockfile)
n=0
until [ $n -ge 300 ]
until [ $n -ge "$PT_in_progress_timeout" ]
do
[ ! -e "$lockfile" ] && break
echo -n .
Expand Down

0 comments on commit 19989d1

Please sign in to comment.