summaryrefslogtreecommitdiff
path: root/manifests/puppetagent.pp
blob: 3e65c8b48a29a82fb4eb4e49f0aaa15949879bc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class profiles::puppetagent {
  if defined(Class['profiles::puppetserver']) {
    fail('Can only either be puppetagent or puppetserver (which is also a puppetagent), not both')
  }

  class { 'puppet':
    server       => false,
    agent        => true,
    show_diff    => true,
    puppetmaster => $facts['extlib__puppet_config']['main']['server'],
  }

}