[chef] Re: Where id node[:ec2][:instance_id] go?


Chronological Thread 
  • From: AJ Christensen < >
  • To: chef < >
  • Subject: [chef] Re: Where id node[:ec2][:instance_id] go?
  • Date: Fri, 18 Jan 2013 13:39:12 +1300

IIRC, the ec2 plugin was disabled by default due to causing excessive delays on other systems.

You can turn it on with an ohai hint: $(touch /etc/chef/ohai/hints/ec2.json)

Cheers,

AJ


On 18 January 2013 13:27, Vincent Jorgensen < " target="_blank"> > wrote:
Once upon a time I had a script that did the following:
$!/bin/bash
knife exec -E "search(:node, 'name:$1) { |h| puts h[:ec2][:instance_id] } "

and it worked, that it, it returned the EC2 instance ID of the node in $1.

I hadn't used the script in a while, and when I when to use it today, instance_id was gone. Further investigation revealed that it isn't in the node at all (knife node edit nodename -a, then search for nstance_d, ec2, or i-* all turned up nil).

Did it go away in the latest iteration of chef? If so, why? And is there a way I can get it back?

Thanks!
--------------------------------
Vincent Jorgensen




Archive powered by MHonArc 2.6.16.

§