Skip to content

Commit 7e7708b

Browse files
(PE-42079) Add timeouts around puppet run on db targets
1 parent 4e79524 commit 7e7708b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plans/subplans/install.pp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,10 @@
407407
)
408408

409409
$bg_db_run = background('database-targets') || {
410-
run_task('peadm::puppet_runonce', $database_targets)
410+
run_task('peadm::puppet_runonce', $database_targets, {
411+
'_timeout' => 900, # 15 minutes for puppet run
412+
'_catch_errors' => true # Don't fail the entire plan if this times out
413+
})
411414
}
412415

413416
parallelize($agent_installer_targets) |$target| {
@@ -429,7 +432,7 @@
429432
run_task('peadm::puppet_runonce', $target)
430433
}
431434

432-
wait([$bg_db_run])
435+
wait([$bg_db_run], '_timeout' => 1200)
433436

434437
# The puppetserver might be in the middle of a restart after the Puppet run,
435438
# so we check the status by calling the api and ensuring the puppetserver is

0 commit comments

Comments
 (0)