Puppet Plan: cd4peadm::install::roles::backend

Defined in:
plans/install/roles/backend.pp

Overview

Calls the manifests needed to install and configure the backend role

Parameters:

  • config (Cd4peadm::Config)

    Cd4peadm::Config object with all config options

Returns:

  • Does not return anything



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'plans/install/roles/backend.pp', line 8

plan cd4peadm::install::roles::backend(
  Cd4peadm::Config $config,
) {
  $apply_options = {
    '_run_as' => 'root',
    '_description' => 'install and configure application components for role: Backend',
  }

  apply($config['roles']['backend']['targets'], $apply_options) {
    class { 'cd4peadm':
      runtime => $config['runtime'],
    }

    class { 'cd4peadm::component::pipelinesinfra':
      config => $config['roles']['backend']['services']['pipelinesinfra'],
    }

    class { 'cd4peadm::component::query':
      config             => $config['roles']['backend']['services']['query'],
      api_container_name => $config['roles']['backend']['services']['pipelinesinfra']['container']['name'],
    }
  }
}