Puppet Plan: puppet::bootstrap

Defined in:
plans/bootstrap.pp

Overview

Parameters:

  • targets (TargetSpec)
  • server (Stdlib::Fqdn)


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,
) {
  run_plan(puppet::agent5::install, $targets)
  run_plan(facts, $targets)

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