Commit 780a5d40 authored by Raphaël Pinson's avatar Raphaël Pinson
Browse files

satellite: pass relayhost to mta

parent 8395745b
......@@ -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';
}
......
......@@ -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}":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment