aboutsummaryrefslogtreecommitdiff
path: root/manifests/puppetmasterd.pp
diff options
context:
space:
mode:
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"],
+ }
}