summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster/debian.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/puppetmaster/debian.pp')
-rw-r--r--manifests/puppetmaster/debian.pp9
1 files changed, 8 insertions, 1 deletions
diff --git a/manifests/puppetmaster/debian.pp b/manifests/puppetmaster/debian.pp
index 8cee0ea..a7d7f0a 100644
--- a/manifests/puppetmaster/debian.pp
+++ b/manifests/puppetmaster/debian.pp
@@ -8,12 +8,19 @@ class puppet::puppetmaster::debian inherits puppet::puppetmaster::package {
}
}
+ if $puppetmaster_mode == 'passenger' {
+ $puppetmaster_default_nofity = 'Exec[notify_passenger_puppetmaster]'
+ }
+
file { '/etc/default/puppetmaster':
source => [ "puppet:///modules/site-puppet/master/debian/${fqdn}/puppetmaster",
"puppet:///modules/site-puppet/master/debian/${domain}/puppetmaster",
"puppet:///modules/site-puppet/master/debian/puppetmaster",
"puppet:///modules/puppet/master/debian/puppetmaster" ],
- notify => Service[puppetmaster],
+ notify => $puppetmaster_default_nofity ? {
+ '' => Service[puppetmaster],
+ default => Exec['notify_passenger_puppetmaster']
+ },
owner => root, group => 0, mode => 0644;
}
}