From 3e56ee36c3fcce581ba476dda07a81d3ac2ae737 Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Mon, 29 Aug 2011 00:47:40 -0400 Subject: Parametrize value of inet_interfaces We don't always want to have postfix listen to all interfaces. Since the config generally defaults to listening on all interfaces, make that the default value. Signed-off-by: Gabriel Filion --- manifests/classes/postfix.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'manifests') diff --git a/manifests/classes/postfix.pp b/manifests/classes/postfix.pp index 4e9cd6f..c6eeeea 100644 --- a/manifests/classes/postfix.pp +++ b/manifests/classes/postfix.pp @@ -64,6 +64,9 @@ class postfix { case $postfix_mastercf_tail { "": { $postfix_mastercf_tail = "" } } + case $postfix_inet_interfaces { + "": { $postfix_inet_interfaces = 'all' } + } # Bootstrap moduledir include common::moduledir @@ -153,7 +156,7 @@ class postfix { postfix::config { "myorigin": value => "${fqdn}"; "alias_maps": value => "hash:/etc/aliases"; - "inet_interfaces": value => "all"; + "inet_interfaces": value => "${postfix_inet_interfaces}"; } case $operatingsystem { -- cgit v1.2.3 From 6a94b97ee20834175997fff595b18c26425fb52e Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Tue, 6 Sep 2011 07:06:41 -0400 Subject: Make 'myorigin' customizable Not all sites use their fqdn as the 'myorigin' value. The new $postfix_myorigin variable makes it possible to specify a custom value for this option. When no values are specified, keep the default behaviour of using $fqdn as the value for myorigin. Signed-off-by: Gabriel Filion --- manifests/classes/postfix.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'manifests') diff --git a/manifests/classes/postfix.pp b/manifests/classes/postfix.pp index c6eeeea..63a50b9 100644 --- a/manifests/classes/postfix.pp +++ b/manifests/classes/postfix.pp @@ -67,6 +67,9 @@ class postfix { case $postfix_inet_interfaces { "": { $postfix_inet_interfaces = 'all' } } + case $postfix_myorigin { + "": { $postfix_myorigin = $fqdn } + } # Bootstrap moduledir include common::moduledir @@ -154,7 +157,7 @@ class postfix { # Default configuration parameters postfix::config { - "myorigin": value => "${fqdn}"; + "myorigin": value => "${postfix_myorigin}"; "alias_maps": value => "hash:/etc/aliases"; "inet_interfaces": value => "${postfix_inet_interfaces}"; } -- cgit v1.2.3