Skip to content

Instantly share code, notes, and snippets.

@lusis
Created December 7, 2011 19:12
Show Gist options
  • Save lusis/1444181 to your computer and use it in GitHub Desktop.
Save lusis/1444181 to your computer and use it in GitHub Desktop.
handy motd erb template for chef
__________________________________________________
|
| Node name: <%= node.name %>
| Node arch: <%= node.kernel.machine %>
<% 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