aboutsummaryrefslogtreecommitdiff
path: root/manifests/puppetmasterd.pp
blob: 64aaa049ed210ba56aab9b744c95047b3128b285 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import "config.pp"

package { "puppetmaster": ensure => installed, }

# updates the puppet configuration dir with git repositories
# every 5 minutes.
cron { puppet-conf:
  command => "git --git-dir=/etc/puppet/.git/ pull /var/git/repositories/puppet.git master && \
              git --git-dir=/etc/puppet/.git/ --work-tree=/etc/puppet/ checkout -f",
  user    => root,
  hour    => '*',
  minute  => '*/5',
  ensure  => present,
}

# runs the service
service { "puppetmasterd":
  ensure => stopped,
  depends => Package["puppetmaster"],
}