forked from jeffmccune/jeffmccune-motd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmotd.erb
21 lines (21 loc) · 814 Bytes
/
motd.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-----------------------------------------------------------
<%= @ascii %>
-----------------------------------------------------------
Welcome to <%= @hostname %>.<%= @domain %>
OS: <%= @operatingsystem %> Release <%= @operatingsystemrelease %>
OS family: <%= @osfamily %>
Architechture: <%=@architecture %>
IP: <%=@ipaddress %>
<% if has_variable?("productname") then -%>
Product: <%=@productname %>
<% end -%>
<% if has_variable?("processor0") then -%>
CPU: <%=@processorcount %> X <%=@processor0 %>
<% end -%>
<% if has_variable?("memorytotal") then -%>
RAM: <%= @memorytotal %>
<% end -%>
System uptime: <%=@uptime %>
-----------------------------------------------------------
This system is managed by Puppet
-----------------------------------------------------------