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:
9260f63
)
Let's not change motd needlessly
author
Stephen Gran
<steve@lobefin.net>
Sun, 26 Apr 2009 15:59:02 +0000
(16:59 +0100)
committer
Stephen Gran
<steve@lobefin.net>
Sun, 26 Apr 2009 15:59:02 +0000
(16:59 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
templates/motd.erb
patch
|
blob
|
history
diff --git
a/templates/motd.erb
b/templates/motd.erb
index
d0538d4
..
b186dc9
100644
(file)
--- a/
templates/motd.erb
+++ b/
templates/motd.erb
@@
-34,7
+34,7
@@
if (nodeinfo['ldap'].at(0)) and (nodeinfo['ldap'][0].has_key?('purpose'))
purp += " porterbox\n"
else
purp += ", used for the following services:\n"
- nodeinfo['ldap'][0]['purpose'].each do |l|
+ nodeinfo['ldap'][0]['purpose'].
sort.
each do |l|
if l =~ /\[\[(\*|-)?(.*?)\]\]/
l = $2
end