Skip to content

Commit 19989d1

Browse files
authored
Merge pull request #417 from marcIhm/main
make configurable: timeout to wait for in-progress run
2 parents 7b98a72 + 3ab6c2b commit 19989d1

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

REFERENCE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,12 @@ Data type: `Optional[Boolean]`
13521352

13531353
If true, run Puppet in no-op mode
13541354

1355+
##### `in_progress_timeout`
1356+
1357+
Data type: `Integer[1]`
1358+
1359+
How many seconds to wait for a puppet run, that is already in progress
1360+
13551361
### <a name="rbac_token"></a>`rbac_token`
13561362

13571363
Get and save an rbac token for the root user, admin rbac user

tasks/puppet_runonce.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
"noop": {
99
"type": "Optional[Boolean]",
1010
"description": "If true, run Puppet in no-op mode"
11+
},
12+
"in_progress_timeout": {
13+
"type": "Integer[1]",
14+
"description": "How many seconds to wait for a puppet run, that is already in progress",
15+
"default": 600
1116
}
1217
},
1318
"input_method": "environment",

tasks/puppet_runonce.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
echo -n "Check for and wait up to 5 minutes for in-progress run to complete"
1616
lockfile=$(/opt/puppetlabs/bin/puppet config print agent_catalog_run_lockfile)
1717
n=0
18-
until [ $n -ge 300 ]
18+
until [ $n -ge "$PT_in_progress_timeout" ]
1919
do
2020
[ ! -e "$lockfile" ] && break
2121
echo -n .

0 commit comments

Comments
 (0)