aboutsummaryrefslogtreecommitdiff
path: root/manifests/puppetmasterd.pp
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2011-03-11 14:53:39 -0300
committerdrebs <drebs@riseup.net>2011-03-11 14:53:39 -0300
commit01b2048dbf02ac726dabde5e846b9d6ac9aff0e6 (patch)
tree28f13f07a483a73ffcbfb25e4aba0c40f3d656bb /manifests/puppetmasterd.pp
downloadpuppet-bootstrap-01b2048dbf02ac726dabde5e846b9d6ac9aff0e6.tar.gz
puppet-bootstrap-01b2048dbf02ac726dabde5e846b9d6ac9aff0e6.tar.bz2
initial recommit
Diffstat (limited to 'manifests/puppetmasterd.pp')
-rw-r--r--manifests/puppetmasterd.pp21
1 files changed, 21 insertions, 0 deletions
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"],
+ }
+}
+