Puppet Plan: cd4peadm::install::overview

Defined in:
plans/install/overview.pp

Overview

Prints summary information and next steps post-install

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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'plans/install/overview.pp', line 8

plan cd4peadm::install::overview(
  Cd4peadm::Config $config
) {
  $secret_key_dir = file::join(cd4peadm::bolt_project_dir(), 'keys')
  $application_url = $config['roles']['backend']['services']['pipelinesinfra']['resolvable_hostname']
  $root_login = $config['roles']['backend']['services']['pipelinesinfra']['root_username']

  $role_summary = $config['roles'].reduce('') |$memo, $role| {
    "${memo}${role[0]}:\n  ${role[1]['targets'].join(', ')}\n"
  }

  $next_steps = @("NEXTSTEPS"/L)

========== Next steps ================================================
1. You can now access the CD4PE application at https://${application_url}
     Root login: ${root_login}


2. To create a backup, run the cd4peadm::backup plan.

3. A key pair was created in ${secret_key_dir}
These keys will be needed by anyone running the cd4peadm bolt plans in the
future. Ensure that you do not check-in / commit the private key generated
into VCS.

To experience the full value of Puppet Enterprise, install the Puppet 
Enterprise Suite:
https://www.puppet.com/pe
======================================================================

See https://www.puppet.com/docs/continuous-delivery/5.x/cd_user_guide.html for more information.

  | NEXTSTEPS

  without_default_logging () || {
    out::message("\nCD4PE successfully installed to:")
    out::message($role_summary)
    out::message($next_steps)
  }
}