cyrus + postfix: Where to put the exec, that is the question.

This commit is contained in:
Lari Huttunen 2013-03-05 16:35:40 +01:00
parent 1182b71d2b
commit ce1732d5b7
2 changed files with 12 additions and 10 deletions

View file

@ -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":

View file

@ -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 {