aboutsummaryrefslogtreecommitdiff
path: root/manifests/mailman.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-02-16 16:51:56 +0100
committermh <mh@immerda.ch>2012-02-16 16:51:56 +0100
commit77578b93bd98bf0bf9cf69e4fa8da75dcf9c236d (patch)
treec0ce83a00c9c6220b4bdddd1d5781e86b7ce2e48 /manifests/mailman.pp
parent5108973b37903047b8b17fbe54313cb4b6ea114f (diff)
downloadpuppet-postfix-77578b93bd98bf0bf9cf69e4fa8da75dcf9c236d.tar.gz
puppet-postfix-77578b93bd98bf0bf9cf69e4fa8da75dcf9c236d.tar.bz2
put classes and defines in the proper place
To take advantage of puppet's autoloading feature, which will be mandatory sooner or later. We move all the files in their appropriate place.
Diffstat (limited to 'manifests/mailman.pp')
-rw-r--r--manifests/mailman.pp36
1 files changed, 36 insertions, 0 deletions
diff --git a/manifests/mailman.pp b/manifests/mailman.pp
new file mode 100644
index 0000000..cba0848
--- /dev/null
+++ b/manifests/mailman.pp
@@ -0,0 +1,36 @@
+#
+# == Class: postfix::mailman
+#
+# Configures a basic smtp server, able to work for the mailman mailing-list
+# manager.
+#
+# Parameters:
+# - every global variable which works for class "postfix" will work here.
+#
+# Example usage:
+#
+# node "toto.example.com" {
+# include mailman
+# include postfix::mailman
+# }
+#
+class postfix::mailman {
+ $postfix_smtp_listen = "0.0.0.0"
+ include postfix
+
+ postfix::config {
+ "mydestination": value => "";
+ "virtual_alias_maps": value => "hash:/etc/postfix/virtual";
+ "transport_maps": value => "hash:/etc/postfix/transport";
+ "mailman_destination_recipient_limit": value => "1", nonstandard => true;
+ }
+
+ postfix::hash { "/etc/postfix/virtual":
+ ensure => present,
+ }
+
+ postfix::hash { "/etc/postfix/transport":
+ ensure => present,
+ }
+
+}