]> gitweb.fluxo.info Git - puppet-postfix.git/commitdiff
make default value for alias_maps optional
authorelijah <elijah@riseup.net>
Sat, 22 Aug 2015 00:09:58 +0000 (17:09 -0700)
committerMicah Anderson <micah@riseup.net>
Wed, 9 Sep 2015 14:03:45 +0000 (10:03 -0400)
manifests/init.pp

index f454be9c0f32a99fb841ec5e48226391949f69b2..4a7ca728c4b73fef3c68b992c563c4262707ca8a 100644 (file)
@@ -52,7 +52,8 @@ class postfix(
   $use_smtps               = "no",
   $mastercf_tail           = "",
   $inet_interfaces         = 'all',
-  $myorigin                = $::fqdn
+  $myorigin                = $::fqdn,
+  $default_alias_maps      = true
 ) {
 
   # selinux labels differ from one distribution to another
@@ -165,9 +166,13 @@ class postfix(
   }
 
   # Default configuration parameters
+  if $default_alias_maps {
+    postfix::config {
+      "alias_maps": value => "hash:/etc/aliases";
+    }
+  }
   postfix::config {
-    "myorigin":   value => "${myorigin}";
-    "alias_maps": value => "hash:/etc/aliases";
+    "myorigin":        value => "${myorigin}";
     "inet_interfaces": value => "${inet_interfaces}";
   }