]> gitweb.fluxo.info Git - puppet-mail.git/commitdiff
Managing service sympa
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 26 Aug 2010 20:21:41 +0000 (17:21 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 26 Aug 2010 20:21:41 +0000 (17:21 -0300)
manifests/sympa.pp

index 18e8c9ae83e0137bf39ed6d7f9de2fa2346881c4..1e769364694554d332bcea97cf555ae1a3286400 100644 (file)
@@ -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"] {