projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Let's not change motd needlessly
[mirror/dsa-puppet.git]
/
templates
/
motd.erb
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