]> gitweb.fluxo.info Git - puppet-postfix.git/commitdiff
Make 'myorigin' customizable
authorGabriel Filion <lelutin@gmail.com>
Tue, 6 Sep 2011 11:06:41 +0000 (07:06 -0400)
committerGabriel Filion <lelutin@gmail.com>
Sun, 11 Sep 2011 08:25:10 +0000 (04:25 -0400)
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>
manifests/classes/postfix.pp

index c6eeeea3a7a11264b4b5c393786fa04f75a0832d..63a50b958e8874d989ff3e7a32fd2bb75ad9a5f8 100644 (file)
@@ -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}";
   }