summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-08-26 17:21:41 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-08-26 17:21:41 -0300
commitb6bb9e91ccadcfc9f23164538e726fec61dcad6e (patch)
treed0530f025446720b1e8b6e845efb0905c1411bac
parentd40ab8dae8691b7b3692d2bb748bff755937d490 (diff)
downloadpuppet-mail-b6bb9e91ccadcfc9f23164538e726fec61dcad6e.tar.gz
puppet-mail-b6bb9e91ccadcfc9f23164538e726fec61dcad6e.tar.bz2
Managing service sympa
-rw-r--r--manifests/sympa.pp9
1 files changed, 8 insertions, 1 deletions
diff --git a/manifests/sympa.pp b/manifests/sympa.pp
index 18e8c9a..1e76936 100644
--- a/manifests/sympa.pp
+++ b/manifests/sympa.pp
@@ -45,6 +45,13 @@ class mail::sympa inherits mail::regexps {
require => Group['sympa'],
}
+ service { "sympa":
+ enable => true,
+ ensure => running,
+ hasstatus => false,
+ pattern => '/usr/lib/sympa/bin/sympa.pl',
+ }
+
file { "/etc/sympa":
ensure => directory,
owner => postfix,
@@ -59,7 +66,7 @@ class mail::sympa inherits mail::regexps {
mode => 0640,
content => template('mail/sympa/sympa.conf.erb'),
require => [ File['/etc/sympa'], User['sympa'] ],
- notify => Service['apache'],
+ notify => Service['apache', 'sympa'],
}
File["/etc/postfix/transport_regexp"] {