Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add parameter in_progress_timeout; double default #390

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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