aboutsummaryrefslogtreecommitdiff
path: root/manifests/classes/postfix-mta.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/classes/postfix-mta.pp')
-rw-r--r--manifests/classes/postfix-mta.pp29
1 files changed, 17 insertions, 12 deletions
diff --git a/manifests/classes/postfix-mta.pp b/manifests/classes/postfix-mta.pp
index 451ac36..9046bad 100644
--- a/manifests/classes/postfix-mta.pp
+++ b/manifests/classes/postfix-mta.pp
@@ -1,4 +1,5 @@
-#########################################################################
+#
+# == Class: postfix::mta
#
# This class configures a minimal MTA, listening on
# $postfix_ng_smtp_listen (default to localhost) and delivering mail to
@@ -9,22 +10,26 @@
# transport & virtual maps get configured and can be populated with
# postfix::transport and postfix::virtual
#
-# Example:
+# Parameters:
+# - *$postfix_relayhost*
+# - *$postfix_mydestination*
+# - every global variable which works for class "postfix" will work here.
+#
+# Example usage:
#
-# node "toto.example.com" {
-# $postfix_relayhost = "mail.example.com"
-# $postfix_ng_smtp_listen = "0.0.0.0"
-# $postfix_mydestination = "\$myorigin, myapp.example.com"
+# node "toto.example.com" {
+# $postfix_relayhost = "mail.example.com"
+# $postfix_ng_smtp_listen = "0.0.0.0"
+# $postfix_mydestination = "\$myorigin, myapp.example.com"
#
-# include postfix::mta
+# include postfix::mta
#
-# postfix::transport { "myapp.example.com":
-# ensure => present,
-# destination => "local:",
+# postfix::transport { "myapp.example.com":
+# ensure => present,
+# destination => "local:",
+# }
# }
-# }
#
-
class postfix::mta {
case $postfix_relayhost {