summaryrefslogtreecommitdiff
path: root/manifests/puppet.pp
blob: 8000f47c0ad6ebabbf68cbb886343823b887c3da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This classes manage a puppet installation, and provide for a puppetd
# service and a puppetmasterd service, the latter constantly updated by a
# cron-job which git-pushes from '/var/git/repositories/puppet.git'.

# guarantees puppet user, group and ownerships
class puppet {
  user { "puppet":
    ensure    => present,
    allowdupe => false,
  }

  group { "puppet":
    ensure    => present,
    allowdupe => false,
  }

  file { "/etc/puppet":
    ensure  => directory,
    owner   => puppet,
    group   => puppet,
    recurse => inf,
    require => User["puppet"],
  }
}