cyrus + postfix: Notify the services if the user was modified.
This commit is contained in:
parent
ce1732d5b7
commit
5f3e6c481c
2 changed files with 2 additions and 0 deletions
|
@ -67,6 +67,7 @@ class cyrus {
|
||||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||||
command => "usermod -a -G ssl-cert cyrus",
|
command => "usermod -a -G ssl-cert cyrus",
|
||||||
unless => "id -n -G cyrus | grep '\\bssl-cert\\b'",
|
unless => "id -n -G cyrus | grep '\\bssl-cert\\b'",
|
||||||
|
notify => Service["cyrus-imapd"],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "/etc/cyrus.conf":
|
file { "/etc/cyrus.conf":
|
||||||
|
|
|
@ -95,6 +95,7 @@ class postfix {
|
||||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||||
command => "usermod -a -G ssl-cert postfix",
|
command => "usermod -a -G ssl-cert postfix",
|
||||||
unless => "id -n -G postfix | grep '\\bssl-cert\\b'",
|
unless => "id -n -G postfix | grep '\\bssl-cert\\b'",
|
||||||
|
notify => Service["postfix"],
|
||||||
}
|
}
|
||||||
|
|
||||||
if $postgrey {
|
if $postgrey {
|
||||||
|
|
Loading…
Add table
Reference in a new issue