make default value for alias_maps optional
authorelijah <elijah@riseup.net>
Sat, 22 Aug 2015 00:09:58 +0000 (17:09 -0700)
committerelijah <elijah@riseup.net>
Sat, 22 Aug 2015 00:09:58 +0000 (17:09 -0700)
manifests/init.pp

index 83457cf..adab904 100644 (file)
@@ -54,7 +54,8 @@ class postfix(
   $inet_interfaces         = 'all',
   $myorigin                = $::fqdn,
   $mailname                = $::fqdn,
-  $preseed                 = false
+  $preseed                 = false,
+  $default_alias_maps      = true
 ) {
 
   # selinux labels differ from one distribution to another
@@ -177,9 +178,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}";
   }