streetcornerlurker
streetcornerlurker

Reputation: 501

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

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.

Upvotes: 4

Views: 2760

Answers (1)

tmatilai
tmatilai

Reputation: 4176

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.

Upvotes: 7

Related Questions