[chef] Re: Re: Re: Re: aws cookbook and tags


Chronological Thread 
  • From: Andrew Gross < >
  • To: chef < >
  • Subject: [chef] Re: Re: Re: Re: aws cookbook and tags
  • Date: Mon, 29 Jul 2013 10:14:07 -0400

This is what we use in our EC2/VPC bootstrap script

mkdir -p /etc/chef/ohai/hints && touch /etc/chef/ohai/hints/ec2.json


On Sat, Jul 27, 2013 at 1:53 PM, Zac Stevens < " target="_blank"> > wrote:
Hi David,

On Sat, Jul 27, 2013 at 2:46 AM, David Montgomery < " target="_blank"> > wrote:
But I am not using VPC. 

Are you absolutely certain?  If you started using a region in the last few months, you'll automatically be creating instances in a VPC (see http://aws.typepad.com/aws/2013/03/amazon-ec2-update-virtual-private-clouds-for-everyone.html)
 
Also..looking at hosted chef..I do not see ec2 attribute..yet I am using ec2?  Did ohai fail?  I though chef would auto detect ec2.....

Daniel's suggestion (creating the ohai hint) is the best thing to try.  Does it fix your problem?
If so, the problem is that Ohai cannot automatically detect that you are running on EC2.  Creating the hint file is the correct way to fix that.


Zac





Archive powered by MHonArc 2.6.16.

§