aboutsummaryrefslogtreecommitdiff
path: root/manifests/puppetmasterd.pp
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2011-03-11 18:41:05 -0300
committerdrebs <drebs@riseup.net>2011-03-11 18:41:05 -0300
commitf7c1d1a879c81cd5ea328b191ab6729f05a03984 (patch)
tree913e8a0ff05b9dbb6f157acc017d79869775496d /manifests/puppetmasterd.pp
parent01b2048dbf02ac726dabde5e846b9d6ac9aff0e6 (diff)
downloadpuppet-bootstrap-f7c1d1a879c81cd5ea328b191ab6729f05a03984.tar.gz
puppet-bootstrap-f7c1d1a879c81cd5ea328b191ab6729f05a03984.tar.bz2
using puppet apply
Diffstat (limited to 'manifests/puppetmasterd.pp')
-rw-r--r--manifests/puppetmasterd.pp33
1 files changed, 16 insertions, 17 deletions
diff --git a/manifests/puppetmasterd.pp b/manifests/puppetmasterd.pp
index 44681fc..64aaa04 100644
--- a/manifests/puppetmasterd.pp
+++ b/manifests/puppetmasterd.pp
@@ -1,21 +1,20 @@
-class puppetmasterd {
- package { "puppetmaster": ensure => installed, }
+import "config.pp"
- # 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,
- }
+package { "puppetmaster": ensure => installed, }
- # runs the service
- service { "puppetmasterd":
- ensure => stopped,
- depends => Package["puppetmaster"],
- }
+# 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"],
+}