From: Silvio Rhatto Date: Fri, 1 Feb 2013 17:55:52 +0000 (-0200) Subject: Using an intermediary variable to hold mail delivery config X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=fe0c1a484b8d4d51c709086835a1b71405733cff;p=puppet-nodo.git Using an intermediary variable to hold mail delivery config --- diff --git a/manifests/nodo.pp b/manifests/nodo.pp index 491d249..a9cf037 100644 --- a/manifests/nodo.pp +++ b/manifests/nodo.pp @@ -47,7 +47,8 @@ class nodo { class { 'runit': ensure => absent } # Email delivery configuration - case hiera('nodo::mail_delivery', 'exim') { + $mail_delivery = hiera('nodo::mail_delivery', 'exim') + case $mail_delivery { 'tunnel': { $mail_hostname = hiera('nodo::mail_hostname') tunnel::mail { "$mail_hostname":