summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/puppetmaster/linux.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/puppetmaster/linux.pp b/manifests/puppetmaster/linux.pp
index 31f8853..26f67fe 100644
--- a/manifests/puppetmaster/linux.pp
+++ b/manifests/puppetmaster/linux.pp
@@ -6,6 +6,15 @@ class puppet::puppetmaster::linux inherits puppet::linux {
#command => 'touch /etc/puppet/rack/tmp/restart.txt && sleep 1 && rm /etc/puppet/rack/tmp/restart.txt',
command => '/etc/init.d/apache2 reload',
}
+
+ service { 'puppetmaster':
+ ensure => running,
+ pattern => 'apache2',
+ hasstatus => true,
+ hasrestart => true,
+ require => [ Package[puppet] ],
+ }
+
} else {
service { 'puppetmaster':
ensure => running,