aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorGabriel Filion <lelutin@gmail.com>2011-09-06 07:06:41 -0400
committerGabriel Filion <lelutin@gmail.com>2011-09-11 04:25:10 -0400
commit6a94b97ee20834175997fff595b18c26425fb52e (patch)
tree1b93998099ada1072100bc7284aca9d54571b760 /manifests
parent3e56ee36c3fcce581ba476dda07a81d3ac2ae737 (diff)
downloadpuppet-postfix-6a94b97ee20834175997fff595b18c26425fb52e.tar.gz
puppet-postfix-6a94b97ee20834175997fff595b18c26425fb52e.tar.bz2
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 <lelutin@gmail.com>
Diffstat (limited to 'manifests')
-rw-r--r--manifests/classes/postfix.pp5
1 files changed, 4 insertions, 1 deletions
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}";
}