aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-08-21 17:09:58 -0700
committerMicah Anderson <micah@riseup.net>2015-09-09 10:03:45 -0400
commit58c687dcaa5c24d3258b34a2a75e7a964431fd91 (patch)
tree770898644e8c2b1d5c0419ccaae230fed7de7ca7 /manifests
parent2f4eb46acfa6c29aeb19297b3c7fe803adccf069 (diff)
downloadpuppet-postfix-58c687dcaa5c24d3258b34a2a75e7a964431fd91.tar.gz
puppet-postfix-58c687dcaa5c24d3258b34a2a75e7a964431fd91.tar.bz2
make default value for alias_maps optional
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp11
1 files changed, 8 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index f454be9..4a7ca72 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -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}";
}