summaryrefslogtreecommitdiff
path: root/manifests/mlmmj.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-04-07 21:01:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-04-07 21:01:11 -0300
commitea04126f62796c6a8d21aeda4a9c2db4b11ae659 (patch)
tree3d1606e872e0364785c3c082b69b303479e56808 /manifests/mlmmj.pp
parent15a98e434860aa5211447c6b0f4dbabed287c65c (diff)
downloadpuppet-mail-ea04126f62796c6a8d21aeda4a9c2db4b11ae659.tar.gz
puppet-mail-ea04126f62796c6a8d21aeda4a9c2db4b11ae659.tar.bz2
Adding mail::mlmmj::list
Diffstat (limited to 'manifests/mlmmj.pp')
-rw-r--r--manifests/mlmmj.pp9
1 files changed, 8 insertions, 1 deletions
diff --git a/manifests/mlmmj.pp b/manifests/mlmmj.pp
index 52b9bd0..a8fc9ff 100644
--- a/manifests/mlmmj.pp
+++ b/manifests/mlmmj.pp
@@ -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,
+ }
+ }
}