Puppet Plan: cd4peadm::install::wait_for_services

Defined in:
plans/install/wait_for_services.pp

Overview

Waits until we get a 200 healthy status response back from the CD4PE api endpoint.

Parameters:

  • config (Cd4peadm::Config) (defaults to: cd4peadm::config())

    Cd4peadm::Config config object

Returns:

  • This plan does not return anything



9
10
11
12
13
14
15
16
# File 'plans/install/wait_for_services.pp', line 9

plan cd4peadm::install::wait_for_services(
  Cd4peadm::Config $config = cd4peadm::config()
) {
  $is_healthy = cd4peadm::status_check($config['roles']['backend']['services']['pipelinesinfra']['resolvable_hostname'])
  if !$is_healthy {
    fail_plan('Services did not come up within expected time frame', 'cd4pe/error')
  }
}