saltstack/salt-contrib — pull request #37 by nigeldunn (2013-05-05 06:38:20+00:00)
Title: Reworked the EC2 grain to recursively read the EC2 metadata

As per the title, I've rejigged the the ec2_info.py grain to work more like the ec2.rb file in Facter. It now recursively walks the EC2 metadata and builds a dictionary with the appropriate values.

Works with EC2-Classic and EC2-VPC placement groups.