ec2 vpc with kitchen

325 views
Skip to first unread message

Arthur autohandle

unread,
Apr 30, 2014, 7:48:17 PM4/30/14
to testing-with-chef, Mischa Taylor
and i found the documentation for kitchen-ec2:
https://github.com/test-kitchen/kitchen-ec2

but i can't find where vpc is mentioned for kitchen - can i get a hint?

Mischa Taylor

unread,
Apr 30, 2014, 9:30:05 PM4/30/14
to testing-...@googlegroups.com, Mischa Taylor
I haven't tried doing this myself using either tool, so I don't know the exact answer, but searching for VPC in the github issue tracker for kitchen-ec2 seems to outline all the required components.  (And you can see people are actively using VPC setups with kitchen-ec2, so if it were me, I'd contact some of the people who submitted stuff for more detail...and perhaps collaborate on updating the kitchen-ec2 documentation *grin*):

The most promising seems to be this thread where actual .kitchen.yml files are discussed in detail, and the thread is pretty recent (2 months ago):
doesn't invoke test while using ec2 driver.  If it were me, I try the last one in the list, tweak the security_group setting as he mentions, and see if that works (and if not contact JigarJoshi with more questions):

Also, here's some older ones...

Adding subnet_id option for use with VPCs:

In VPC groups must be specified by setting :security_group_ids rather than :groups

Support selection of private IP:


Use private ip if the public ip is nil:

Arthur autohandle

unread,
May 1, 2014, 1:41:12 PM5/1/14
to Mischa Taylor, testing-with-chef
it says:

You need to create /etc/chef/ohai/hints/ec2.json. It doesn’t need any content but the file itself needs to exist. We pass a provider attribute into our node attributes (vsphere, openstack, ec2, etc) and added this to our bootstrap file:

<% if ['openstack', 'ec2' ].include? first_boot['provider'] %>
mkdir -p /etc/chef/ohai/hints
touch /etc/chef/ohai/hints/<%= first_boot['provider'] %>.json
<% end %>

what does it mean: bootstrap file?

so sorry to be confused by the basics - thanks for helping me.



--
You received this message because you are subscribed to the Google Groups "Testing with Chef" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testing-with-c...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages