cyrus + postfix: Where to put the exec, that is the question.
This commit is contained in:
parent
1182b71d2b
commit
ce1732d5b7
2 changed files with 12 additions and 10 deletions
|
@ -61,11 +61,12 @@ class cyrus {
|
|||
owner => "root",
|
||||
group => "mail",
|
||||
notify => Service["cyrus-imapd"],
|
||||
exec { "usermod-cyrus-ssl-cert":
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
command => "usermod -a -G ssl-cert cyrus",
|
||||
unless => "id -n -G cyrus | grep '\\bssl-cert\\b'",
|
||||
}
|
||||
}
|
||||
|
||||
exec { "usermod-cyrus-ssl-cert":
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
command => "usermod -a -G ssl-cert cyrus",
|
||||
unless => "id -n -G cyrus | grep '\\bssl-cert\\b'",
|
||||
}
|
||||
|
||||
file { "/etc/cyrus.conf":
|
||||
|
|
|
@ -89,11 +89,12 @@ class postfix {
|
|||
group => "postfix",
|
||||
require => Package["postfix"],
|
||||
notify => Service["postfix"],
|
||||
exec { "usermod-postfix-ssl-cert":
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
command => "usermod -a -G ssl-cert postfix",
|
||||
unless => "id -n -G postfix | grep '\\bssl-cert\\b'",
|
||||
}
|
||||
}
|
||||
|
||||
exec { "usermod-postfix-ssl-cert":
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
command => "usermod -a -G ssl-cert postfix",
|
||||
unless => "id -n -G postfix | grep '\\bssl-cert\\b'",
|
||||
}
|
||||
|
||||
if $postgrey {
|
||||
|
|
Loading…
Add table
Reference in a new issue