smtpd: Fix service resource names

This commit is contained in:
Ossi Salmi 2016-02-23 11:37:53 +02:00
parent 2e28f7dfbd
commit 23dbd80fe1

View file

@ -172,7 +172,7 @@ class smtpd(
owner => 'root',
group => 'wheel',
source => $ssl_key,
notify => Service['smtpd'],
notify => Service[$service],
}
file { "${ssl::certs}/smtpd.crt":
ensure => present,
@ -180,7 +180,7 @@ class smtpd(
owner => 'root',
group => 'wheel',
source => $ssl_cert,
notify => Service['smtpd'],
notify => Service[$service],
}
}
@ -196,7 +196,7 @@ class smtpd(
mode => '0700',
owner => 'root',
group => 'wheel',
before => Service['smtpd'],
before => Service[$service],
}
if $gecos == true {
@ -233,7 +233,7 @@ class smtpd(
cwd => '/etc/mail',
path => '/bin:/usr/bin:/sbin:/usr/sbin',
subscribe => File['/etc/mail/aliases'],
before => Service['smtpd'],
before => Service[$service],
}
file { '/etc/mail/clients':
@ -252,7 +252,7 @@ class smtpd(
cwd => '/etc/mail',
path => '/bin:/usr/bin:/sbin:/usr/sbin',
subscribe => File['/etc/mail/clients'],
before => Service['smtpd'],
before => Service[$service],
}
if $domains {
@ -297,7 +297,7 @@ define smtpd::aliases($gecos) {
cwd => '/etc/mail',
path => '/bin:/usr/bin:/sbin:/usr/sbin',
subscribe => File["/etc/mail/aliases.${name}"],
before => Service['smtpd'],
before => Service[$smtpd::service],
}
}
@ -323,7 +323,7 @@ define smtpd::virtual() {
cwd => '/etc/mail',
path => '/bin:/usr/bin:/sbin:/usr/sbin',
subscribe => File["/etc/mail/virtual.${name}"],
before => Service['smtpd'],
before => Service[$smtpd::service],
}
}