diff options
author | drebs <drebs@riseup.net> | 2011-03-12 18:04:39 -0300 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2011-03-12 18:04:39 -0300 |
commit | 6d0cc2a36b1718a737bc88f08d7101eb101ee00b (patch) | |
tree | 5837ae00ae6dbba38454958ab78ca1a76da532ca /manifests/puppetmasterd.pp | |
parent | c250722de28cf556005b0d4103854d13cf781b56 (diff) | |
download | puppet-bootstrap-6d0cc2a36b1718a737bc88f08d7101eb101ee00b.tar.gz puppet-bootstrap-6d0cc2a36b1718a737bc88f08d7101eb101ee00b.tar.bz2 |
refactoring stages
Diffstat (limited to 'manifests/puppetmasterd.pp')
-rw-r--r-- | manifests/puppetmasterd.pp | 33 |
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"], + } } |