diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-02-01 15:55:52 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-02-01 15:55:52 -0200 |
commit | fe0c1a484b8d4d51c709086835a1b71405733cff (patch) | |
tree | 75486628fd98a9e9f38ea88caca814d7cba495b4 | |
parent | 4f27fd7652d93182d9ad01138db35862dbaeca79 (diff) | |
download | puppet-nodo-fe0c1a484b8d4d51c709086835a1b71405733cff.tar.gz puppet-nodo-fe0c1a484b8d4d51c709086835a1b71405733cff.tar.bz2 |
Using an intermediary variable to hold mail delivery config
-rw-r--r-- | manifests/nodo.pp | 3 |
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": |