projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8e97b2
)
Tell us about physicalhost in motd
author
Peter Palfrader
<peter@palfrader.org>
Mon, 29 Nov 2010 19:43:08 +0000
(20:43 +0100)
committer
Peter Palfrader
<peter@palfrader.org>
Mon, 29 Nov 2010 19:43:08 +0000
(20:43 +0100)
modules/motd/templates/motd.erb
patch
|
blob
|
history
diff --git
a/modules/motd/templates/motd.erb
b/modules/motd/templates/motd.erb
index
b54981b
..
cd7f292
100644
(file)
--- a/
modules/motd/templates/motd.erb
+++ b/
modules/motd/templates/motd.erb
@@
-50,6
+50,10
@@
else
purp += "\n"
end
+if (nodeinfo['ldap'].has_key?('physicalHost'))
+ purp += "This virtual server runs on the physical host #{nodeinfo['ldap']['physicalHost'][0]}.\n"
+end
+
if nodeinfo.has_key?('footer')
purp += "\n" + wrap(nodeinfo['footer']) + "\n"
end