Puppet Plan: complyadm::install_from_config

Defined in:
plans/install_from_config.pp

Summary

Install Comply based on an existing hiera config.

Overview

Parameters:

  • ignore_failing_preflights (Optional[Boolean]) (defaults to: false)

    Setting to true will ignore failed preflight checks.

  • upload_images (Optional[Boolean]) (defaults to: true)

    Setting to true will curl images locally from a public GCS bucket and then upload to the install target. Setting to false will pull images directly from the registry on the install target.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'plans/install_from_config.pp', line 7

plan complyadm::install_from_config(
  Optional[Boolean] $ignore_failing_preflights = false,
  Optional[Boolean] $upload_images = true
) {
  $config = complyadm::config()

  run_plan('complyadm::preflight',
    config => $config,
    ignore_failing_preflights => $ignore_failing_preflights,
  )

  if $config['install_runtime'] {
    run_plan('complyadm::install::runtime',
      config => $config,
    )
  }

  if $upload_images {
    run_plan('complyadm::install::upload_images',
      config => $config,
    )
  } else {
    run_plan('complyadm::install::download_images',
      config => $config,
    )
  }

  run_command('mkdir -p /etc/puppetlabs',
    $config['all_targets'],
    { '_run_as' => 'root', '_catch_errors' => true }
  )

  run_plan('complyadm::install::roles',
    config => $config,
  )

  run_plan('complyadm::install::wait_for_services',
    config => $config,
  )

  run_plan('complyadm::install::overview',
    config => $config
  )
}