]> gitweb.fluxo.info Git - puppet-postfix.git/commitdiff
Parametrize value of inet_interfaces
authorGabriel Filion <lelutin@gmail.com>
Mon, 29 Aug 2011 04:47:40 +0000 (00:47 -0400)
committerGabriel Filion <lelutin@gmail.com>
Sun, 11 Sep 2011 08:23:26 +0000 (04:23 -0400)
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 <lelutin@gmail.com>
manifests/classes/postfix.pp

index 4e9cd6f8eee7272c2473870bd17769fe7f8fa6e3..c6eeeea3a7a11264b4b5c393786fa04f75a0832d 100644 (file)
@@ -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 {