Skip to content

Commit

Permalink
Modify motd
Browse files Browse the repository at this point in the history
  • Loading branch information
ViMesTor committed Jan 25, 2024
1 parent 3e5eaa0 commit ee00f02
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions resources/templates/default/motd.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<%= `toilet -f script -t "redborder - ng"` %>
<% if !node["redborder"]["manager"]["cluster_name"].nil? %>
Welcome to '<%= node["redborder"]["manager"]["cluster_name"] %>' redborder cluster:
<% else %>
Expand All @@ -7,7 +6,7 @@

<% if !node["redborder"].nil? and !node["redborder"]["rpms"].nil? %>
<% node["redborder"]["rpms"].each do |k, v| %>
* <%= "redborder-%-12s" % [ k ] %> => <%= v.sub(/\.el9\.rb.*/, '') %>
* <%= "redborder-%-12s" % [ k ] %> => <%= v %>
<% end %>
<% end %>
<%-
Expand Down Expand Up @@ -59,7 +58,7 @@
<% end %>
Host: <%= node['ipaddress'] %> (<%= node['macaddress'].nil? ? "" : node['macaddress'] %>)
<% if node['ipaddress'] != ipaddress_sync %>
IP sync : <%= ipaddress_sync %>
IP sync : <%= ipaddress_sync %> (<%= node['macaddress'].nil? ? "" : node['macaddress'] %>)
<%end %>
Installed on: <% inst = `rpm -q basesystem --qf '%{installtime:date}\n'` ; inst = inst.gsub("\n","") %><%= inst %>
Last check: <%= Time.at(node[:ohai_time]).strftime('%a %b %d %H:%M:%S %Z %Y') %>
Expand Down

0 comments on commit ee00f02

Please sign in to comment.