Skip to content

Instantly share code, notes, and snippets.

@harlanbarnes
Created January 17, 2012 21:37
Show Gist options
  • Save harlanbarnes/1629086 to your computer and use it in GitHub Desktop.
Save harlanbarnes/1629086 to your computer and use it in GitHub Desktop.
motd.erb
<% if @banner -%><%= @banner -%><% end -%>
+----------------------------------------
|
| Host name: <%= node[:hostname] %>
| FQDN: <%= node[:fqdn] %>
| Distro / Arch: <%= node[:platform] %> <%= node[:platform_version] %> <%= node.kernel.machine %>
<% if node.attribute?('applogic') -%>
| App name: <%= node[:applogic][:APP_NAME] %>
| Comp name: <%= node[:applogic][:COMP_NAME] %>
<% end -%>
<% if node.attribute?('ec2') -%>
| EC2 AMI: <%= node[:ec2][:ami_id] %>
| EC2 Instance: <%= node[:ec2][:instance_id] %>
| Size: <%= node[:ec2][:instance_type] %>
| Public IP: <%= node[:ec2][:public_ipv4] %>
| Private IP: <%= node[:ec2][:local_ipv4] %>
| Zone: <%= node[:ec2][:placement_availability_zone] %>
| Security Group: <%= node[:ec2][:security_groups].first %>
<% end -%>
|
+----------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment