From 01b2048dbf02ac726dabde5e846b9d6ac9aff0e6 Mon Sep 17 00:00:00 2001 From: drebs Date: Fri, 11 Mar 2011 14:53:39 -0300 Subject: initial recommit --- manifests/puppetmasterd.pp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 manifests/puppetmasterd.pp (limited to 'manifests/puppetmasterd.pp') diff --git a/manifests/puppetmasterd.pp b/manifests/puppetmasterd.pp new file mode 100644 index 0000000..44681fc --- /dev/null +++ b/manifests/puppetmasterd.pp @@ -0,0 +1,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"], + } +} + -- cgit v1.2.3