diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-06-17 20:57:21 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-06-17 20:57:21 -0300 |
commit | c38a65d0c8565ebe3d22a72c396f233929b93287 (patch) | |
tree | 90592df1a872e4f2a1c571a25b9552688df16690 /manifests/satellite.pp | |
parent | 50a114ab258bd5b9186b61a9c73d82f2ffdab3f6 (diff) | |
parent | 969076a813b88dafd222c413bf6fbabab837eafb (diff) | |
download | puppet-postfix-c38a65d0c8565ebe3d22a72c396f233929b93287.tar.gz puppet-postfix-c38a65d0c8565ebe3d22a72c396f233929b93287.tar.bz2 |
Conflicts:
manifests/init.pp
templates/master.cf.debian-7.erb
Diffstat (limited to 'manifests/satellite.pp')
-rw-r--r-- | manifests/satellite.pp | 10 |
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': |