Skip to content

Instantly share code, notes, and snippets.

View leejones's full-sized avatar

Lee Jones leejones

View GitHub Profile
@lusis
lusis / motd.erb
Created December 7, 2011 19:12
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] %>