Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Puppet Camptocamp Postfix
Commits
ceac81cd
Commit
ceac81cd
authored
Jul 22, 2013
by
Raphaël Pinson
Browse files
Add alias_maps to parameters
parent
9bc6ca84
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/init.pp
View file @
ceac81cd
...
...
@@ -5,6 +5,8 @@
# delivery and an SMTP server listening on the loopback interface.
#
# Parameters:
# [*alias_maps*] - (string)
#
# [*inet_interfaces*] - (string)
#
# [*ldap*] - (boolean)
...
...
@@ -61,6 +63,7 @@
# }
#
class
postfix
(
$alias_maps
=
'hash:/etc/aliases'
,
$inet_interfaces
=
'all'
,
$ldap
=
false
,
$ldap_base
=
undef
,
...
...
@@ -97,6 +100,7 @@ class postfix (
validate_bool
(
$use_schleuder
)
validate_bool
(
$use_sympa
)
validate_string
(
$alias_maps
)
validate_string
(
$inet_interfaces
)
validate_string
(
$ldap_base
)
validate_string
(
$ldap_host
)
...
...
@@ -121,8 +125,8 @@ class postfix (
}
$alias_maps
=
$ldap
?
{
false
=>
'hash:/etc/aliases'
,
true
=>
'"hash:/etc/aliases
, ldap:/etc/postfix/ldap-aliases.cf"
'
,
false
=>
$alias_maps
,
true
=>
"
\"
${alias_maps}
, ldap:/etc/postfix/ldap-aliases.cf
\"
"
,
}
class
{
'postfix::packages'
:
}
->
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment