# Test-kitchen + chef-zero

**URL:** <https://discourse.chef.io/t/test-kitchen-chef-zero/4493>\
**Category:** Chef Infra (archive)\
**Created:** [September 24, 2013, 11:58am UTC](https://discourse.chef.io/t/test-kitchen-chef-zero/4493 "2013-09-24T11:58:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anton\_Koldaev](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/anton_koldaev/32/91_2.png) [@Anton\_Koldaev](https://discourse.chef.io/u/Anton_Koldaev)\
**Post date:** [September 24, 2013, 11:58am UTC](https://discourse.chef.io/t/test-kitchen-chef-zero/4493/1 "2013-09-24T11:58:56Z")

</div>

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](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 works?

–  
Best regards,  
Koldaev Anton

---

<div class="post-metadata">

**Author:** ![Anton\_Koldaev](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/anton_koldaev/32/91_2.png) [@Anton\_Koldaev](https://discourse.chef.io/u/Anton_Koldaev)\
**Post date:** [September 24, 2013, 12:02pm UTC](https://discourse.chef.io/t/test-kitchen-chef-zero/4493/2 "2013-09-24T12:02:16Z")

</div>

updated gist: [gist:54912998eac3ace049a1 · GitHub](https://gist.github.com/iroller/54912998eac3ace049a1)

On Tue, Sep 24, 2013 at 3:58 PM, Anton Koldaev [koldaevav@gmail.com](mailto:koldaevav@gmail.com) wrote:

> 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](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  
> works?
> 
> --  
> Best regards,  
> Koldaev Anton

--  
Best regards,  
Koldaev Anton

---

<div class="post-metadata">

**Author:** ![Carlton\_Stedman](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/carlton_stedman/32/472_2.png) [@Carlton\_Stedman](https://discourse.chef.io/u/Carlton_Stedman)\
**Post date:** [September 24, 2013, 12:25pm UTC](https://discourse.chef.io/t/test-kitchen-chef-zero/4493/3 "2013-09-24T12:25:38Z")

</div>

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 that way.

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  
"use\_vagrant\_provision: false".

Example:

* * *

driver\_plugin: vagrant

platforms:

- name: ubuntu-precise  
driver\_config:  
box: ubuntu-12.04  
box\_url: .box  
provider: virtualbox  
use\_vagrant\_berkshelf\_plugin: true  
use\_vagrant\_provision: false

provisioner: chef\_zero

suites:

- name: default  
run\_list:   
attributes: {}

On Tue, Sep 24, 2013 at 8:02 AM, Anton Koldaev [koldaevav@gmail.com](mailto:koldaevav@gmail.com) wrote:

> updated gist: [gist:54912998eac3ace049a1 · GitHub](https://gist.github.com/iroller/54912998eac3ace049a1)
> 
> On Tue, Sep 24, 2013 at 3:58 PM, Anton Koldaev [koldaevav@gmail.com](mailto:koldaevav@gmail.com)wrote:
> 
> > 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](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  
> > works?
> > 
> > --  
> > Best regards,  
> > Koldaev Anton
> 
> --  
> Best regards,  
> Koldaev Anton

---

<div class="post-metadata">

**Author:** ![Anton\_Koldaev](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/anton_koldaev/32/91_2.png) [@Anton\_Koldaev](https://discourse.chef.io/u/Anton_Koldaev)\
**Post date:** [September 25, 2013, 2:23pm UTC](https://discourse.chef.io/t/test-kitchen-chef-zero/4493/4 "2013-09-25T14:23:34Z")

</div>

> The test-kitchen chef\_zero provisioner seems to install chef-zero on the  
> guest  
> Oh, that makes sense

On Tue, Sep 24, 2013 at 4:25 PM, Carlton Stedman [cstedman@dyn.com](mailto:cstedman@dyn.com) wrote:

> 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  
> that way.
> 
> 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  
> "use\_vagrant\_provision: false".
> 
> Example:
> 
> * * *
> 
> driver\_plugin: vagrant
> 
> platforms:
> 
> - name: ubuntu-precise  
> driver\_config:  
> box: ubuntu-12.04  
> box\_url: .box  
> provider: virtualbox  
> use\_vagrant\_berkshelf\_plugin: true  
> use\_vagrant\_provision: false
> 
> provisioner: chef\_zero
> 
> suites:
> 
> - name: default  
> run\_list:   
> attributes: {}
> 
> On Tue, Sep 24, 2013 at 8:02 AM, Anton Koldaev [koldaevav@gmail.com](mailto:koldaevav@gmail.com)wrote:
> 
> > updated gist: [gist:54912998eac3ace049a1 · GitHub](https://gist.github.com/iroller/54912998eac3ace049a1)
> > 
> > On Tue, Sep 24, 2013 at 3:58 PM, Anton Koldaev [koldaevav@gmail.com](mailto:koldaevav@gmail.com)wrote:
> > 
> > > 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](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  
> > > works?
> > > 
> > > --  
> > > Best regards,  
> > > Koldaev Anton
> > 
> > --  
> > Best regards,  
> > Koldaev Anton

--  
Best regards,  
Koldaev Anton

---

<div class="post-metadata">

**Author:** ![John\_Alberts](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/john_alberts/32/293_2.png) [@John\_Alberts](https://discourse.chef.io/u/John_Alberts)\
**Post date:** [September 25, 2013, 4:35pm UTC](https://discourse.chef.io/t/test-kitchen-chef-zero/4493/5 "2013-09-25T16:35:33Z")

</div>

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

driver\_plugin: vagrant  
driver\_config:  
require\_chef\_omnibus: true  
provisioner: chef\_zero

platforms:

- name: ubuntu-12.04  
driver\_config:  
box: opscode-ubuntu-12.04  
box\_url:  
[https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode\_ubuntu-12.04\_provisionerless.box](https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box)

suites:

- name: client  
run\_list: ["recipe[glusterfs]"]  
attributes: {}
- name: server  
run\_list: ["recipe[glusterfs]", "recipe[glusterfs::server]"]  
attributes: {}

~ ᐅ grep -v '^#' src/cookbooks/glusterfs/Gemfile  
source '[https://rubygems.org](https://rubygems.org)'

gem 'berkshelf'  
group :integration do  
gem 'kitchen-vagrant', :git =\> '  
[GitHub - test-kitchen/kitchen-vagrant: A Test Kitchen Driver for Vagrant](https://github.com/opscode/kitchen-vagrant.git)'  
gem 'test-kitchen', :git =\> 'git://github.com/opscode/test-kitchen.git'  
end

Regards,  
John

On Wed, Sep 25, 2013 at 7:23 AM, Anton Koldaev [koldaevav@gmail.com](mailto:koldaevav@gmail.com) wrote:

> > The test-kitchen chef\_zero provisioner seems to install chef-zero on  
> > the guest  
> > Oh, that makes sense
> 
> On Tue, Sep 24, 2013 at 4:25 PM, Carlton Stedman [cstedman@dyn.com](mailto:cstedman@dyn.com) wrote:
> 
> > 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  
> > that way.
> > 
> > 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  
> > "use\_vagrant\_provision: false".
> > 
> > Example:
> > 
> > * * *
> > 
> > driver\_plugin: vagrant
> > 
> > platforms:
> > 
> > - name: ubuntu-precise  
> > driver\_config:  
> > box: ubuntu-12.04  
> > box\_url: .box  
> > provider: virtualbox  
> > use\_vagrant\_berkshelf\_plugin: true  
> > use\_vagrant\_provision: false
> > 
> > provisioner: chef\_zero
> > 
> > suites:
> > 
> > - name: default  
> > run\_list:   
> > attributes: {}
> > 
> > On Tue, Sep 24, 2013 at 8:02 AM, Anton Koldaev [koldaevav@gmail.com](mailto:koldaevav@gmail.com)wrote:
> > 
> > > updated gist: [gist:54912998eac3ace049a1 · GitHub](https://gist.github.com/iroller/54912998eac3ace049a1)
> > > 
> > > On Tue, Sep 24, 2013 at 3:58 PM, Anton Koldaev [koldaevav@gmail.com](mailto:koldaevav@gmail.com)wrote:
> > > 
> > > > 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](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  
> > > > works?
> > > > 
> > > > --  
> > > > Best regards,  
> > > > Koldaev Anton
> > > 
> > > --  
> > > Best regards,  
> > > Koldaev Anton
> 
> --  
> Best regards,  
> Koldaev Anton

--  
John Alberts

---

<div class="post-metadata">

**Author:** ![Oleg\_Volotov](https://avatars.discourse-cdn.com/v4/letter/o/edb3f5/32.png) [@Oleg\_Volotov](https://discourse.chef.io/u/Oleg_Volotov)\
**Post date:** [September 30, 2013, 7:32am UTC](https://discourse.chef.io/t/test-kitchen-chef-zero/4493/6 "2013-09-30T07:32:17Z")

</div>

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? Regards,Oleg  
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---driver\_plugin: vagrantdriver\_config: require\_chef\_omnibus: trueprovisioner: chef\_zero platforms:- name: ubuntu-12.04 driver\_config: box: opscode-ubuntu-12.04 box\_url: [https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode\_ubuntu-12.04\_provisionerless.box](https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box) suites:- name: client run\_list: ["recipe[glusterfs]"] attributes: {}- name: server run\_list: ["recipe[glusterfs]", "recipe[glusterfs::server]"] attributes: {} ~ ᐅ grep -v '^#' src/cookbooks/glusterfs/Gemfilesource '[https://rubygems.org](https://rubygems.org/)' gem 'berkshelf'group :integration do gem 'kitchen-vagrant', :git =\> '[https://github.com/opscode/kitchen-vagrant.git](https://github.com/opscode/kitchen-vagrant.git)' gem 'test-kitchen', :git =\> 'git://[github.com/opscode/test-kitchen.git](http://github.com/opscode/test-kitchen.git)'end Regards,John  
On Wed, Sep 25, 2013 at 7:23 AM, Anton Koldaev \<koldaevav@gmail.com\> wrote:

> \> The test-kitchen chef\_zero provisioner seems to install chef-zero on the guestOh, that makes sense On Tue, Sep 24, 2013 at 4:25 PM, Carlton Stedman \<cstedman@dyn.com\> wrote:
> 
> > 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 that way.
> > 
> > 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 "use\_vagrant\_provision: false".
> > 
> > Example:
> > 
> > ---driver\_plugin: vagrant platforms:- name: ubuntu-precise driver\_config: box: ubuntu-12.04 box\_url: \<some-url\>.box provider: virtualbox use\_vagrant\_berkshelf\_plugin: true use\_vagrant\_provision: false provisioner: chef\_zero suites:- name: default run\_list: attributes: {}  
> > On Tue, Sep 24, 2013 at 8:02 AM, Anton Koldaev \<koldaevav@gmail.com\> wrote:
> > 
> > > updated gist: [https://gist.github.com/iroller/54912998eac3ace049a1](https://gist.github.com/iroller/54912998eac3ace049a1) On Tue, Sep 24, 2013 at 3:58 PM, Anton Koldaev \<koldaevav@gmail.com\> wrote:
> > > 
> > > > 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](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 works? --
> > > > 
> > > > Best regards,
> > > > 
> > > > Koldaev Anton
> > > 
> > > --
> > > 
> > > Best regards,
> > > 
> > > Koldaev Anton
> 
> --
> 
> Best regards,
> 
> Koldaev Anton

--

John Alberts

---

<div class="post-metadata">

**Author:** ![Carlton\_Stedman](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/carlton_stedman/32/472_2.png) [@Carlton\_Stedman](https://discourse.chef.io/u/Carlton_Stedman)\
**Post date:** [October 3, 2013, 5:28pm UTC](https://discourse.chef.io/t/test-kitchen-chef-zero/4493/7 "2013-10-03T17:28:06Z")

</div>

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  
repos exist.

Same things with roles and (I think, but haven't tested),  
encrypted\_data\_bag\_secret.

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.

-Carlton

On Mon, Sep 30, 2013 at 3:32 AM, Oleg Volotov [oleg.volotov@gmx.de](mailto:oleg.volotov@gmx.de) 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?
> 
> Regards,  
> Oleg
> 
> 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
> 
> driver\_plugin: vagrant  
> driver\_config:  
> require\_chef\_omnibus: true  
> provisioner: chef\_zero
> 
> platforms:
> 
> - name: ubuntu-12.04  
> driver\_config:  
> box: opscode-ubuntu-12.04  
> box\_url:  
> [https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode\_ubuntu-12.04\_provisionerless.box](https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box)
> 
> suites:
> 
> - name: client  
> run\_list: ["recipe[glusterfs]"]  
> attributes: {}
> - name: server  
> run\_list: ["recipe[glusterfs]", "recipe[glusterfs::server]"]  
> attributes: {}
> 
> ~ ᐅ grep -v '^#' src/cookbooks/glusterfs/Gemfile  
> source '[https://rubygems.org](https://rubygems.org)'
> 
> gem 'berkshelf'  
> group :integration do  
> gem 'kitchen-vagrant', :git =\> '  
> [GitHub - test-kitchen/kitchen-vagrant: A Test Kitchen Driver for Vagrant](https://github.com/opscode/kitchen-vagrant.git)'  
> gem 'test-kitchen', :git =\> 'git://github.com/opscode/test-kitchen.git'  
> end
> 
> Regards,  
> John
> 
> On Wed, Sep 25, 2013 at 7:23 AM, Anton Koldaev [koldaevav@gmail.com](mailto:koldaevav@gmail.com)wrote:
> 
> > > The test-kitchen chef\_zero provisioner seems to install chef-zero on  
> > > the guest  
> > > Oh, that makes sense
> > 
> > On Tue, Sep 24, 2013 at 4:25 PM, Carlton Stedman [cstedman@dyn.com](mailto:cstedman@dyn.com)wrote:
> > 
> > > 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  
> > > that way.
> > > 
> > > 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  
> > > "use\_vagrant\_provision: false".
> > > 
> > > Example:
> > > 
> > > * * *
> > > 
> > > driver\_plugin: vagrant
> > > 
> > > platforms:
> > > 
> > > - name: ubuntu-precise  
> > > driver\_config:  
> > > box: ubuntu-12.04  
> > > box\_url: .box  
> > > provider: virtualbox  
> > > use\_vagrant\_berkshelf\_plugin: true  
> > > use\_vagrant\_provision: false
> > > 
> > > provisioner: chef\_zero
> > > 
> > > suites:
> > > 
> > > - name: default  
> > > run\_list:   
> > > attributes: {}
> > > 
> > > On Tue, Sep 24, 2013 at 8:02 AM, Anton Koldaev [koldaevav@gmail.com](mailto:koldaevav@gmail.com)wrote:
> > > 
> > > > updated gist: [gist:54912998eac3ace049a1 · GitHub](https://gist.github.com/iroller/54912998eac3ace049a1)
> > > > 
> > > > On Tue, Sep 24, 2013 at 3:58 PM, Anton Koldaev [koldaevav@gmail.com](mailto:koldaevav@gmail.com)wrote:
> > > > 
> > > > > 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](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  
> > > > > works?
> > > > > 
> > > > > --  
> > > > > Best regards,  
> > > > > Koldaev Anton
> > > > 
> > > > --  
> > > > Best regards,  
> > > > Koldaev Anton
> > 
> > --  
> > Best regards,  
> > Koldaev Anton
> 
> --  
> John Alberts

---

<div class="post-metadata">

**Author:** ![Oleg\_Volotov](https://avatars.discourse-cdn.com/v4/letter/o/edb3f5/32.png) [@Oleg\_Volotov](https://discourse.chef.io/u/Oleg_Volotov)\
**Post date:** [October 8, 2013, 7:54am UTC](https://discourse.chef.io/t/test-kitchen-chef-zero/4493/8 "2013-10-08T07:54:08Z")

</div>

Yeah that did the trick. Thanks allot. I've tried it over days with no result. Regards,Oleg  
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 repos exist.

Same things with roles and (I think, but haven't tested), encrypted\_data\_bag\_secret.

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.

-Carlton  
On Mon, Sep 30, 2013 at 3:32 AM, Oleg Volotov \<oleg.volotov@gmx.de\> 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? Regards,Oleg 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---driver\_plugin: vagrantdriver\_config: require\_chef\_omnibus: trueprovisioner: chef\_zero platforms:- name: ubuntu-12.04 driver\_config: box: opscode-ubuntu-12.04 box\_url: [https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode\_ubuntu-12.04\_provisionerless.box](https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box) suites:- name: client run\_list: ["recipe[glusterfs]"] attributes: {}- name: server run\_list: ["recipe[glusterfs]", "recipe[glusterfs::server]"] attributes: {} ~ ᐅ grep -v '^#' src/cookbooks/glusterfs/Gemfilesource '[https://rubygems.org](https://rubygems.org/)' gem 'berkshelf'group :integration do gem 'kitchen-vagrant', :git =\> '[https://github.com/opscode/kitchen-vagrant.git](https://github.com/opscode/kitchen-vagrant.git)' gem 'test-kitchen', :git =\> 'git://[github.com/opscode/test-kitchen.git](http://github.com/opscode/test-kitchen.git)'end Regards,John On Wed, Sep 25, 2013 at 7:23 AM, Anton Koldaev \<[koldaevav@gmail.com](http://koldaevav@gmail.com)\> wrote:
> 
> > \> The test-kitchen chef\_zero provisioner seems to install chef-zero on the guestOh, that makes sense On Tue, Sep 24, 2013 at 4:25 PM, Carlton Stedman \<[cstedman@dyn.com](http://cstedman@dyn.com)\> wrote:
> > 
> > > 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 that way.
> > > 
> > > 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 "use\_vagrant\_provision: false".
> > > 
> > > Example:
> > > 
> > > ---driver\_plugin: vagrant platforms:- name: ubuntu-precise driver\_config: box: ubuntu-12.04 box\_url: \<some-url\>.box provider: virtualbox use\_vagrant\_berkshelf\_plugin: true use\_vagrant\_provision: false provisioner: chef\_zero suites:- name: default run\_list: attributes: {}  
> > > On Tue, Sep 24, 2013 at 8:02 AM, Anton Koldaev \<[koldaevav@gmail.com](http://koldaevav@gmail.com)\> wrote:
> > > 
> > > > updated gist: [https://gist.github.com/iroller/54912998eac3ace049a1](https://gist.github.com/iroller/54912998eac3ace049a1) On Tue, Sep 24, 2013 at 3:58 PM, Anton Koldaev \<[koldaevav@gmail.com](http://koldaevav@gmail.com)\> wrote:
> > > > 
> > > > > 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](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 works? --
> > > > > 
> > > > > Best regards,
> > > > > 
> > > > > Koldaev Anton
> > > > 
> > > > --
> > > > 
> > > > Best regards,
> > > > 
> > > > Koldaev Anton
> > 
> > --
> > 
> > Best regards,
> > 
> > Koldaev Anton
> 
> --
> 
> John Alberts
