make default value for alias_maps optional

This commit is contained in:
elijah 2015-08-21 17:09:58 -07:00 committed by Micah Anderson
parent 2f4eb46acf
commit 58c687dcaa

View 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}";
}