[chef] Re: Re: still necessary to hint Ohai on EC2 VPC?


Chronological Thread 
  • From: Bryan Berry < >
  • To: " " < >
  • Subject: [chef] Re: Re: still necessary to hint Ohai on EC2 VPC?
  • Date: Tue, 12 Aug 2014 13:02:40 +0200

thanks Jason, that's very helpful to know


On Tue, Aug 12, 2014 at 12:59 PM, Jason Perry < " target="_blank"> > wrote:
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.

  -- Jay
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?

cheers,

Bryan W. Berry




Archive powered by MHonArc 2.6.16.

§