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
be7b79d2
Commit
be7b79d2
authored
Jul 22, 2013
by
Raphaël Pinson
Browse files
mynetworks defaults to 127.0.0.1/8
parent
144d5026
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/mta.pp
View file @
be7b79d2
...
...
@@ -33,20 +33,25 @@
class
postfix::mta
{
$mydestination
=
$postfix::mydestination
?
{
undef
=>
$
postfix::
myorigin
,
undef
=>
'
$myorigin
'
,
default
=>
$postfix::mydestination
,
}
$mynetworks
=
$postfix::mynetworks
?
{
undef
=>
'127.0.0.1/8'
,
default
=>
$postfix::mynetworks
,
}
validate_re
(
$postfix::relayhost
,
'^\S+$'
,
'You must pass $relayhost to the postfix class'
)
validate_re
(
$mydestination
,
'^\S+$'
,
'
You must pass $mydestination to the postfix class
'
)
validate_re
(
$
postfix::
mynetworks
,
'^\S+$'
,
'
You must pass $mynetworks to the postfix clas
s'
)
'
Wrong value for $mydestination
'
)
validate_re
(
$mynetworks
,
'^\S+$'
,
'
Wrong value for $mynetwork
s'
)
postfix::config
{
'mydestination'
:
value
=>
$mydestination
;
'mynetworks'
:
value
=>
$
postfix::
mynetworks
;
'mynetworks'
:
value
=>
$mynetworks
;
'relayhost'
:
value
=>
$postfix::relayhost
;
'virtual_alias_maps'
:
value
=>
'hash:/etc/postfix/virtual'
;
'transport_maps'
:
value
=>
'hash:/etc/postfix/transport'
;
...
...
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