]> gitweb.fluxo.info Git - puppet-mail.git/commitdiff
Adding mail::mlmmj::list
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 8 Apr 2012 00:01:11 +0000 (21:01 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 8 Apr 2012 00:01:11 +0000 (21:01 -0300)
manifests/mlmmj.pp
templates/postfix/mlmmj/transport_regexp.erb
templates/postfix/mlmmj/virtual_regexp.erb

index 52b9bd01fc4459b17ce5776567cdfc6c33ad055c..a8fc9ff0f3399e87b88ba96c2e35f4783ca92fb7 100644 (file)
@@ -30,10 +30,17 @@ class mail::mlmmj {
   #}
 
   postfix::transport_regexp_snippet { 'mlmmj_transport_regexp':
-    content => template('mail/postfix/mlmmj/transport_regexp.erb'),
+    content => '',
   }
 
   postfix::virtual_regexp_snippet { 'mlmmj_virtual_regexp':
     content => template('mail/postfix/mlmmj/virtual_regexp.erb'),
   }
+
+  define list($ensure = 'present') {
+    postfix::transport_regexp_snippet { "mlmmj_transport_regexp-$name":
+      content => "/^($name).*$/             mlmmj:$name",
+      ensure  => $ensure,
+    }
+  }
 }
index ff6cf1235625d99d2b32b2b0efe52e48c3bcff90..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1 +0,0 @@
-/^(.*)\@<%= mlmmj_subdomain.gsub(/\./, '\.') %>\.(.*)$/       mlmmj:${1}
index a500819e222b6360372c96dd13ef74f32ca855f2..77811ddf8072744dc5d3f321ab36893e18a1d756 100644 (file)
@@ -1 +1 @@
-/^(.*)\@<%= mlmmj_subdomain.gsub(/\./, '\.') %>\.(.*)$/                    $1@$2
+/^(.*)\@<%= mlmmj_subdomain.gsub(/\./, '\.') %>\.(.*)$/                    ${1}