aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-02-01 15:55:52 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-02-01 15:55:52 -0200
commitfe0c1a484b8d4d51c709086835a1b71405733cff (patch)
tree75486628fd98a9e9f38ea88caca814d7cba495b4
parent4f27fd7652d93182d9ad01138db35862dbaeca79 (diff)
downloadpuppet-nodo-fe0c1a484b8d4d51c709086835a1b71405733cff.tar.gz
puppet-nodo-fe0c1a484b8d4d51c709086835a1b71405733cff.tar.bz2
Using an intermediary variable to hold mail delivery config
-rw-r--r--manifests/nodo.pp3
1 files changed, 2 insertions, 1 deletions
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":