We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8916d5f + 77ee1e2 commit f55d6daCopy full SHA for f55d6da
plans/action/install.pp
@@ -331,6 +331,19 @@
331
}
332
333
run_task('peadm::puppet_runonce', $master_target)
334
+
335
+ # The puppetserver might be in the middle of a restart so we check the status by calling
336
+ # the api and ensuring the puppetserver is taking requests.
337
+ ctrl::do_until('limit' => 10) || {
338
+ $pe_status = run_task('peadm::check_status', $master_target, service => 'pe-master')
339
+ if ($pe_status.first['state'] != 'running') {
340
+ ctrl::sleep(5)
341
+ false
342
+ } else {
343
+ true
344
+ }
345
346
347
run_task('peadm::puppet_runonce', $all_targets - $master_target)
348
349
return("Installation of Puppet Enterprise ${arch['architecture']} succeeded.")
0 commit comments