When using vagrant machines with test-kitchen the pre_create_command
allows you to specify a command which is run locally before the vagrant machine is being created. With kitchen-docker no such configuration option seems to exist, and bending chef_omnibus_url
as suggested here isn't an option.
The script specified as pre_create_command
for the testing vagrants generates a local chef data bag.
Is there a solution around which I've overlooked?
I sketched a patch for kitchen-docker here. However, as the discussion on this pull request shows, there are arguments against an appropriate functionality in kitchen-docker, namely the one that such functionality (if ever) should go in the kitchen core.
So for the time being we have to live with this inconsistency between docker and vagrant, and this is where thun's answer comes into play.