Puppet Plan: puppet::bootstrap

Defined in:
plans/bootstrap.pp

Overview

Parameters:

  • targets (TargetSpec)
  • server (Stdlib::Fqdn)
  • certname (Optional[String]) (defaults to: undef)
  • collection (Puppet::Platform) (defaults to: 'puppet8')


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'plans/bootstrap.pp', line 1

plan puppet::bootstrap (
  TargetSpec $targets,
  Stdlib::Fqdn $server,
  Optional[String] $certname = undef,
  Puppet::Platform $collection = 'puppet8',
) {
  run_plan(puppet::agent::install, $targets, collection => $collection)
  run_plan(facts, $targets)

  return apply($targets) {
    include puppet

    class { 'puppet::globals':
      platform_name => $collection,
    }

    class { 'puppet::agent::config':
      server   => $server,
      certname => $certname,
    }

    class { 'puppet::agent::bootstrap':
      certname => $certname,
      require  => Class['puppet::agent::config'],
    }
  }
}