summaryrefslogtreecommitdiff
path: root/manifests/satellite.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/satellite.pp')
-rw-r--r--manifests/satellite.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/satellite.pp b/manifests/satellite.pp
index da818a5..c6c1a0e 100644
--- a/manifests/satellite.pp
+++ b/manifests/satellite.pp
@@ -21,12 +21,17 @@
# }
# }
#
-class postfix::satellite (
+class postfix::satellite(
$relayhost = '',
$valid_fqdn = $::fqdn,
$root_mail_recipient = ''
) {
+ # If $valid_fqdn is provided, use it to override $fqdn
+ if $valid_fqdn != $::fdqn {
+ $fqdn = $valid_fqdn
+ }
+
class { 'postfix':
root_mail_recipient => $root_mail_recipient,
myorigin => $valid_fqdn,