]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Using an intermediary variable to hold mail delivery config
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Feb 2013 17:55:52 +0000 (15:55 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Feb 2013 17:55:52 +0000 (15:55 -0200)
manifests/nodo.pp

index 491d2490d9d35e63156edf463c49ab7136ddcc25..a9cf03701f400c0bef8802fe208c45c269df734a 100644 (file)
@@ -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":