Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to get kitchen to use the Vagrantfile?

Tags:

vagrant

I'm trying to use kitchen to automate testing of chef recipes and of vagrant environments, but when I run kitchen it ignores the Vagrantfile that is present and does everything based on the .kitchen.yml file. I was wondering if anyone knows of a way to tell kitchen to use the Vagrantfile in setting up the vagrant vm.

Thanks.

like image 318
streetcornerlurker Avatar asked Mar 20 '23 20:03

streetcornerlurker


1 Answers

You can pass a Vagrantfile template to it like this. See the default template for an example.

The idea anyway is to normally configure everything via .kitchen.yml (and .kitchen.local.yml). They are also rendered with Erb, so you can even add ruby logic into them.

like image 200
tmatilai Avatar answered Apr 29 '23 04:04

tmatilai