aboutsummaryrefslogtreecommitdiff
path: root/manifests/satellite.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-17 20:57:21 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-17 20:57:21 -0300
commitc38a65d0c8565ebe3d22a72c396f233929b93287 (patch)
tree90592df1a872e4f2a1c571a25b9552688df16690 /manifests/satellite.pp
parent50a114ab258bd5b9186b61a9c73d82f2ffdab3f6 (diff)
parent969076a813b88dafd222c413bf6fbabab837eafb (diff)
downloadpuppet-postfix-master.tar.gz
puppet-postfix-master.tar.bz2
Merge remote-tracking branch 'shared/master' into upstreamHEADmaster
Conflicts: manifests/init.pp templates/master.cf.debian-7.erb
Diffstat (limited to 'manifests/satellite.pp')
-rw-r--r--manifests/satellite.pp10
1 files changed, 5 insertions, 5 deletions
diff --git a/manifests/satellite.pp b/manifests/satellite.pp
index 739c625..45a40ad 100644
--- a/manifests/satellite.pp
+++ b/manifests/satellite.pp
@@ -21,16 +21,16 @@
# }
# }
#
+
class postfix::satellite(
$relayhost = '',
- $valid_fqdn = '',
+ $valid_fqdn = $::fqdn,
$root_mail_recipient = ''
) {
- # If $valid_fqdn exists, use it to override $fqdn
- case $valid_fqdn {
- "": { $valid_fqdn = $::fqdn }
- default: { $fqdn = "${valid_fqdn}" }
+ # If $valid_fqdn is provided, use it to override $fqdn
+ if $valid_fqdn != $::fdqn {
+ $fqdn = $valid_fqdn
}
class { 'postfix':