From fe0c1a484b8d4d51c709086835a1b71405733cff Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 1 Feb 2013 15:55:52 -0200 Subject: Using an intermediary variable to hold mail delivery config --- manifests/nodo.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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": -- cgit v1.2.3