Skip to content
GitLab
Menu
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
ac3aed9b
Commit
ac3aed9b
authored
Apr 04, 2012
by
Marc Fournier
Browse files
postfix::mta - fixed small scope mismatch.
parent
de52e342
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/mta.pp
View file @
ac3aed9b
...
...
@@ -32,26 +32,27 @@
#
class
postfix::mta
{
case
$
::
postfix_relayhost
{
case
$postfix_relayhost
{
''
:
{
fail
(
'Required \$postfix_relayhost variable is not defined.'
)
}
default
:
{}
}
case
$
::
postfix_mydestination
{
case
$postfix_mydestination
{
''
:
{
$postfix_mydestination
=
'\$myorigin'
}
default
:
{}
}
case
$::postfix_mynetworks
{
""
:
{
$postfix_mynetworks
=
"127.0.0.0/8"
}
case
$postfix_mynetworks
{
""
:
{
$postfix_mynetworks
=
"127.0.0.0/8"
}
default
:
{}
}
include
postfix
postfix::config
{
'mydestination'
:
value
=>
$
::
postfix_mydestination
;
'mynetworks'
:
value
=>
$
::
postfix_mynetworks
;
'relayhost'
:
value
=>
$
::
postfix_relayhost
;
'mydestination'
:
value
=>
$postfix_mydestination
;
'mynetworks'
:
value
=>
$postfix_mynetworks
;
'relayhost'
:
value
=>
$postfix_relayhost
;
'virtual_alias_maps'
:
value
=>
'hash:/etc/postfix/virtual'
;
'transport_maps'
:
value
=>
'hash:/etc/postfix/transport'
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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