aboutsummaryrefslogtreecommitdiff
path: root/manifests/classes/puppetmasterd.pp
blob: 5aaebb70b96ab90643e27c23e0932c92536df50b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class puppetmasterd {

  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"],
  }
}