You need to create a “./test/integration/data_bags” in the root of the repo
you are running test-kitchen from. This can be a symlink to wherever the
Same things with roles and (I think, but haven’t tested),
So, say you’re repo is “foo”, located at “~/repos/foo”, and your data bags
are at “~/repos/data_bags”, then:
mkdir -p ~/repos/foo/test/integration
ln -s ~/repos/data_bags/ ~/repos/foo/test/integration/data_bags
You should see the data_bags being copied over and uploaded to the
chef-zero instance during a kitchen converge.
On Mon, Sep 30, 2013 at 3:32 AM, Oleg Volotov email@example.com wrote:
I have tried it to use some data bag search in my recipes but the virtual
chef server doesn’t have any entries at runtime. Can anyone tell me how to
configure kitchen to upload my local data bags to the chef zero server?
Did you get it to work with the chef_zero provisioner by setting
’use_vagrant_provision:false’? I didn’t need to do that to get it to work.
Simply using ‘provisioner:chef_zero’ worked for me when I used it a couple
months ago. Are you sure you’re using a version of test-kitchen with
chef_zero support. It’s only in 1.0.0.beta1, beta2 and beta3. No final
release yet that I see. I just installed directly from master.
Here’s what worked for me. Just, bundle install and then kitchen verify.
~ ᐅ grep -v ‘^#’ src/cookbooks/glusterfs/.kitchen.yml
- name: client
- name: server
run_list: [“recipe[glusterfs]”, “recipe[glusterfs::server]”]
~ ᐅ grep -v ‘^#’ src/cookbooks/glusterfs/Gemfile
group :integration do
gem ‘kitchen-vagrant’, :git => '
gem ‘test-kitchen’, :git => 'git://github.com/opscode/test-kitchen.git’
On Wed, Sep 25, 2013 at 7:23 AM, Anton Koldaev firstname.lastname@example.org:
The test-kitchen chef_zero provisioner seems to install chef-zero on
Oh, that makes sense
On Tue, Sep 24, 2013 at 4:25 PM, Carlton Stedman email@example.com:
Whereas the vagrant-chef-zero vagrant plugin can be used with a
Vagrantfile to start chef-zero on the host, I have not found a way to get
test-kitchen to use chef-zero instance on the host. The test-kitchen
chef_zero provisioner seems to install chef-zero on the guest and use it
To get that to work, make sure you do not have a Vagrantfile in the
directory you are running test-kitchen, and under the platform section add
- name: ubuntu-precise
- name: default
On Tue, Sep 24, 2013 at 8:02 AM, Anton Koldaev firstname.lastname@example.org:
updated gist: https://gist.github.com/iroller/54912998eac3ace049a1
On Tue, Sep 24, 2013 at 3:58 PM, Anton Koldaev email@example.com:
It looks like the initial support for chef-zero provisioner has been
added to test-kitchen but it’s not working for me:
https://gist.github.com/iroller/8a297dd53438ce02c5e7 (shows chef-zero
as a provisioner, but still trying to use chef-solo on converge)
Is there a way to use Chef-zero with test-kitchen in the same way it
works with Vagrantfile?
Maybe there is some pull request I can clone&merge or a fork where it