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,12 +61,13 @@ class cyrus {
owner => "root", owner => "root",
group => "mail", group => "mail",
notify => Service["cyrus-imapd"], notify => Service["cyrus-imapd"],
}
exec { "usermod-cyrus-ssl-cert": exec { "usermod-cyrus-ssl-cert":
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'",
} }
}
file { "/etc/cyrus.conf": file { "/etc/cyrus.conf":
ensure => present, ensure => present,

View file

@ -89,12 +89,13 @@ class postfix {
group => "postfix", group => "postfix",
require => Package["postfix"], require => Package["postfix"],
notify => Service["postfix"], notify => Service["postfix"],
}
exec { "usermod-postfix-ssl-cert": exec { "usermod-postfix-ssl-cert":
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'",
} }
}
if $postgrey { if $postgrey {
case $::operatingsystem { case $::operatingsystem {