airbnb/stemcell — pull request #56 by sandstrom (2014-07-03 07:59:38+00:00)
Title: Let Ohai know it's running on ec2

Ohai (tool built into chef, which exposes instance data such as processor, memory, network details) has an ec2 plugin, which is useful for determining VPC details, etc.

Since stemcell is targeting only ec2 it is convenient to install this ec2 hint automatically. Also, once chef has been launched it's trickier to make the adjustment, since ohai is run at the very start of chef recipes (thus, providing this from inside recipes is difficult).

For more details, see:
https://github.com/opscode/ohai/pull/73/files