]> gitweb.fluxo.info Git - puppet-mail.git/commitdiff
Using transport_regexp and virtual_regexp management from postfix module
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 7 Apr 2012 18:42:31 +0000 (15:42 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 7 Apr 2012 18:42:31 +0000 (15:42 -0300)
manifests/init.pp
manifests/packages.pp
manifests/regexps.pp [deleted file]
manifests/sympa.pp
manifests/system.pp

index 90b396642c7b826a8e12833d4f548dd80d988693..fc1824fe35dcfd6f424bdf259376c8d5ebbba978 100644 (file)
@@ -14,3 +14,5 @@ import "web.pp"
 import "sympa.pp"
 import "base.pp"
 import "spamassassin.pp"
+import "firma.pp"
+import "mlmmj.pp"
index 0f947d8c72c89aba4ef1d22bf5a132d275edd94a..6a8cc4c5fe09e85ca3331a51c238aa53738928a0 100644 (file)
@@ -46,3 +46,9 @@ class mail::packages::schleuder {
     ensure => installed,
   } 
 }
+
+class mail::packages::mlmmj {
+  package { 'mlmmj':
+    ensure => installed,
+  } 
+}
diff --git a/manifests/regexps.pp b/manifests/regexps.pp
deleted file mode 100644 (file)
index d05ad68..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-class mail::regexps {
-  file { "/etc/postfix/transport_regexp":
-    ensure  => present,
-    owner   => root,
-    group   => root,
-    mode    => 0644,
-    notify  => Service['postfix'],
-  }
-
-  file { "/etc/postfix/virtual_regexp":
-    ensure  => present,
-    owner   => root,
-    group   => root,
-    mode    => 0644,
-    notify  => Service['postfix'],
-  }
-}
index 3674f03186370c3543ff0d1d79af9ee5e8d828c1..0fbc8710b9468cc3aecf397731387f64bcc07107 100644 (file)
@@ -1,4 +1,4 @@
-class mail::sympa inherits mail::regexps {
+class mail::sympa {
   # Sympa subsystems
   include mail::web::sympa
   include mail::packages::sympa
@@ -83,11 +83,11 @@ class mail::sympa inherits mail::regexps {
     source => "puppet:///modules/mail/sympa/logrotate",
   }
 
-  File["/etc/postfix/transport_regexp"] {
+  postfix::transport_regexp { 'sympa_transport_regexp':
     content => template('mail/postfix/sympa/transport_regexp.erb'),
   }
 
-  File["/etc/postfix/virtual_regexp"] {
+  postfix::virtual_regexp { 'sympa_virtual_regexp':
     content => template('mail/postfix/sympa/virtual_regexp.erb'),
   }
 
@@ -163,11 +163,11 @@ class mail::sympa::disabled inherits mail::sympa {
     enable    => false,
   }
 
-  File["/etc/postfix/transport_regexp"] {
+  Postfix::Transport_regexp['sympa_transport_regexp'] {
     content => undef,
   }
 
-  File["/etc/postfix/virtual_regexp"] {
+  Postfix::Virtual_regexp['sympa_virtual_regexp'] {
     content => undef,
   }
 
index f9cd31b2c94525ad03b62fa6d100e48c615e6349..b0926f56107be694718db8834f11f0b6e3a69e4b 100644 (file)
@@ -1,12 +1,14 @@
 class mail::system {
-  $postfix_smtp_listen           = "all"
-  $postfix_use_amavisd           = "yes"
-  $postfix_use_dovecot_lda       = "yes"
-  $postfix_use_schleuder         = "yes"
-  $postfix_use_sympa             = "yes"
-  $postfix_anon_sasl             = "yes"
-  $postfix_mydestination         = '$myhostname, localhost.$mydomain, localhost'
-  $postfix_default_relay_domains = '$mydestination'
+  $postfix_smtp_listen             = "all"
+  $postfix_use_amavisd             = "yes"
+  $postfix_use_dovecot_lda         = "yes"
+  $postfix_use_schleuder           = "yes"
+  $postfix_use_sympa               = "yes"
+  $postfix_anon_sasl               = "yes"
+  $postfix_manage_transport_regexp = "yes"
+  $postfix_manage_virtual_regexp   = "yes"
+  $postfix_mydestination           = '$myhostname, localhost.$mydomain, localhost'
+  $postfix_default_relay_domains   = '$mydestination'
 
   case $postfix_mynetworks {
     '': { $postfix_mynetworks = "127.0.0.0/8" }
@@ -48,7 +50,6 @@ class mail::system {
       include mail::sympa::disabled
     }
     default: {
-      include mail::regexps
     }
   }