From ce1732d5b7486b08ad0c86ea197f7e16f2dd7c1b Mon Sep 17 00:00:00 2001 From: Lari Huttunen Date: Tue, 5 Mar 2013 16:35:40 +0100 Subject: [PATCH] cyrus + postfix: Where to put the exec, that is the question. --- cyrus/manifests/init.pp | 11 ++++++----- postfix/manifests/init.pp | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/cyrus/manifests/init.pp b/cyrus/manifests/init.pp index 9568daf..fe988ed 100644 --- a/cyrus/manifests/init.pp +++ b/cyrus/manifests/init.pp @@ -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": diff --git a/postfix/manifests/init.pp b/postfix/manifests/init.pp index 183c3b5..82bbb59 100644 --- a/postfix/manifests/init.pp +++ b/postfix/manifests/init.pp @@ -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 {