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
780a5d40
Commit
780a5d40
authored
Jul 23, 2013
by
Raphaël Pinson
Browse files
satellite: pass relayhost to mta
parent
8395745b
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifests/mta.pp
View file @
780a5d40
...
...
@@ -33,10 +33,11 @@
class
postfix::mta
(
$mydestination
=
$postfix::mydestination
,
$mynetworks
=
$postfix::mynetworks
,
$relayhost
=
$postfix::relayhost
,
)
{
validate_re
(
$
postfix::
relayhost
,
'^\S+$'
,
'
You must pass $relayhost to the postfix class
'
)
validate_re
(
$relayhost
,
'^\S+$'
,
'
Wrong value for $relayhost
'
)
validate_re
(
$mydestination
,
'^\S+$'
,
'Wrong value for $mydestination'
)
validate_re
(
$mynetworks
,
'^\S+$'
,
...
...
@@ -45,7 +46,7 @@ class postfix::mta (
postfix::config
{
'mydestination'
:
value
=>
$mydestination
;
'mynetworks'
:
value
=>
$mynetworks
;
'relayhost'
:
value
=>
$
postfix::
relayhost
;
'relayhost'
:
value
=>
$relayhost
;
'virtual_alias_maps'
:
value
=>
'hash:/etc/postfix/virtual'
;
'transport_maps'
:
value
=>
'hash:/etc/postfix/transport'
;
}
...
...
manifests/satellite.pp
View file @
780a5d40
...
...
@@ -24,6 +24,7 @@
class
postfix::satellite
(
$mydestination
=
$postfix::mydestination
,
$mynetworks
=
$postfix::mynetworks
,
$relayhost
=
$postfix::relayhost
,
)
{
validate_re
(
$postfix::myorigin
,
'^\S+$'
)
...
...
@@ -31,6 +32,7 @@ class postfix::satellite (
class
{
'::postfix::mta'
:
mydestination
=>
$mydestination
,
mynetworks
=>
$mynetworks
,
relayhost
=>
$relayhost
,
}
postfix::virtual
{
"@
${postfix::myorigin}
"
:
...
...
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