aboutsummaryrefslogtreecommitdiff
path: root/manifests/puppetmasterd.pp
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2011-03-12 18:04:39 -0300
committerdrebs <drebs@riseup.net>2011-03-12 18:04:39 -0300
commit6d0cc2a36b1718a737bc88f08d7101eb101ee00b (patch)
tree5837ae00ae6dbba38454958ab78ca1a76da532ca /manifests/puppetmasterd.pp
parentc250722de28cf556005b0d4103854d13cf781b56 (diff)
downloadpuppet-bootstrap-6d0cc2a36b1718a737bc88f08d7101eb101ee00b.tar.gz
puppet-bootstrap-6d0cc2a36b1718a737bc88f08d7101eb101ee00b.tar.bz2
refactoring stages
Diffstat (limited to 'manifests/puppetmasterd.pp')
-rw-r--r--manifests/puppetmasterd.pp33
1 files changed, 17 insertions, 16 deletions
diff --git a/manifests/puppetmasterd.pp b/manifests/puppetmasterd.pp
index 64aaa04..5aaebb7 100644
--- a/manifests/puppetmasterd.pp
+++ b/manifests/puppetmasterd.pp
@@ -1,20 +1,21 @@
-import "config.pp"
+class puppetmasterd {
-package { "puppetmaster": ensure => installed, }
+ 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,
-}
+ # 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"],
+ # runs the service
+ service { "puppetmasterd":
+ ensure => stopped,
+ depends => Package["puppetmaster"],
+ }
}