Merge branch 'fix_satellite_class' into 'master'
Fix satellite class See merge request !5
This commit is contained in:
commit
bf977c9b76
1 changed files with 5 additions and 5 deletions
|
@ -21,16 +21,16 @@
|
||||||
# }
|
# }
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
|
|
||||||
class postfix::satellite(
|
class postfix::satellite(
|
||||||
$relayhost = '',
|
$relayhost = '',
|
||||||
$valid_fqdn = '',
|
$valid_fqdn = $::fqdn,
|
||||||
$root_mail_recipient = ''
|
$root_mail_recipient = ''
|
||||||
) {
|
) {
|
||||||
|
|
||||||
# If $valid_fqdn exists, use it to override $fqdn
|
# If $valid_fqdn is provided, use it to override $fqdn
|
||||||
case $valid_fqdn {
|
if $valid_fqdn != $::fdqn {
|
||||||
"": { $valid_fqdn = $::fqdn }
|
$fqdn = $valid_fqdn
|
||||||
default: { $fqdn = "${valid_fqdn}" }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class { 'postfix':
|
class { 'postfix':
|
||||||
|
|
Loading…
Reference in a new issue