Puppet Plan: puppet::bootstrap

Defined in:
plans/bootstrap.pp

Overview

Parameters:

  • targets (TargetSpec)
  • server (Stdlib::Fqdn)
  • collection (Puppet::Platform) (defaults to: 'puppet7')


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'plans/bootstrap.pp', line 1

plan puppet::bootstrap (
  TargetSpec $targets,
  Stdlib::Fqdn $server,
  Puppet::Platform $collection = 'puppet7',
) {
  run_plan(puppet::agent::install, $targets, collection => $collection)
  run_plan(facts, $targets)

  return apply($targets) {
    include puppet
    class { 'puppet::agent::config':
      server => $server,
    }
    class { 'puppet::agent::bootstrap':
      require => Class['puppet::agent::config'],
    }
  }
}