Hey Bryan,I believe this is still the case considering last week I pulled in the latest ohai cookbook and the node[:ec2] attribute was not populated in my ec2 vpc (kind of annoying). I had to use the ohai_hint lwrp and reload ohai directly afterwards. Few things to note though, make sure and provide a value for the ec2 hint. I ended up just putting { "type" => "vpc" } for the content attribute to the ohai_hint lwrp (otherwise the ec2.json file will not be created - see the provider code for why this is). You'll also have to make sure and run the ohai_hint and ohai reload in the convergence phase if you use the node[:ec2] anywhere during that phase. Hopefully ec2 vpc detection can be detected in the near future.
-- Jaycheers,Dear chefs,according to this list thread from Jan of this year http://lists.opscode.com/sympa/arc/chef/2014-01/msg00340.html, it is necessary to hint Ohai when running inside an EC2 VPC. Is this still the case?
Bryan W. Berry
Archive powered by MHonArc 2.6.16.