Skip to content
Snippets Groups Projects
Commit ceac81cd authored by Raphaël Pinson's avatar Raphaël Pinson
Browse files

Add alias_maps to parameters

parent 9bc6ca84
Branches
Tags
No related merge requests found
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
# delivery and an SMTP server listening on the loopback interface. # delivery and an SMTP server listening on the loopback interface.
# #
# Parameters: # Parameters:
# [*alias_maps*] - (string)
#
# [*inet_interfaces*] - (string) # [*inet_interfaces*] - (string)
# #
# [*ldap*] - (boolean) # [*ldap*] - (boolean)
...@@ -61,6 +63,7 @@ ...@@ -61,6 +63,7 @@
# } # }
# #
class postfix ( class postfix (
$alias_maps = 'hash:/etc/aliases',
$inet_interfaces = 'all', $inet_interfaces = 'all',
$ldap = false, $ldap = false,
$ldap_base = undef, $ldap_base = undef,
...@@ -97,6 +100,7 @@ class postfix ( ...@@ -97,6 +100,7 @@ class postfix (
validate_bool($use_schleuder) validate_bool($use_schleuder)
validate_bool($use_sympa) validate_bool($use_sympa)
validate_string($alias_maps)
validate_string($inet_interfaces) validate_string($inet_interfaces)
validate_string($ldap_base) validate_string($ldap_base)
validate_string($ldap_host) validate_string($ldap_host)
...@@ -121,8 +125,8 @@ class postfix ( ...@@ -121,8 +125,8 @@ class postfix (
} }
$alias_maps = $ldap ? { $alias_maps = $ldap ? {
false => 'hash:/etc/aliases', false => $alias_maps,
true => '"hash:/etc/aliases, ldap:/etc/postfix/ldap-aliases.cf"', true => "\"${alias_maps}, ldap:/etc/postfix/ldap-aliases.cf\"",
} }
class { 'postfix::packages': } -> class { 'postfix::packages': } ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment