require => Package['munin'];
}
- ssl::service { 'munin.debian.org': }
+ ssl::service { 'munin.debian.org':
+ notify => Service['apache2'],
+ }
file { '/etc/munin/munin-conf.d':
ensure => directory,
mode => '0755',
class roles::wiki {
- ssl::service { 'wiki.debian.org': }
+ ssl::service { 'wiki.debian.org':
+ notify => Service['apache2'],
+ }
rsync::site { 'wiki':
source => 'puppet:///modules/roles/wiki/rsyncd.conf',
}
-define ssl::service($ensure = present, $tlsaport = 443) {
+define ssl::service($ensure = present, $tlsaport = 443, $notify = []) {
$link_target = $ensure ? {
present => link,
absent => absent,
file { "/etc/ssl/debian/certs/$name.crt":
source => "puppet:///modules/ssl/servicecerts/${name}.crt",
- notify => Exec['c_rehash /etc/ssl/debian/certs'],
+ notify => [ Exec['c_rehash /etc/ssl/debian/certs'], $notify ],
}
if $tlsaport > 0 {