From: Luca Filipozzi Date: Wed, 16 May 2012 19:44:18 +0000 (+0000) Subject: try hiera X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=8390620532c7a4fa2b88af42f7a247f4c2b6fba3;p=mirror%2Fdsa-puppet.git try hiera --- diff --git a/modules/motd/templates/motd.erb b/modules/motd/templates/motd.erb index 18c50e2e0..3fdf393ae 100644 --- a/modules/motd/templates/motd.erb +++ b/modules/motd/templates/motd.erb @@ -101,13 +101,16 @@ end if scope.lookupvar('::cluster') - purp += "\nThis machine is ember of ganeti cluster: " + purp += "\nThis machine is a node in ganeti cluster: " purp += scope.lookupvar('::cluster') + ".\n" end if scope.lookupvar('site::nodeinfo').has_key?('footer') purp += "\n" + wrap(scope.lookupvar('site::nodeinfo')['footer']) + "\n" + scope.hiera_array('nodes').each do |node| + purp += "\t" + node + "\n" + end end purp