- From: Lamont Granquist <
>
- To:
- Cc: gregory grey <
>
- Subject: [chef] Re: create databag by chef-solo
- Date: Thu, 05 Mar 2015 11:19:35 -0800
You should use chef-client -z instead of chef-solo. The chef core data
bag libraries assumes it is talking to a server, and does not know how
to create data bags on the filesystem under chef-solo. Chef-client -z
fires up a minimal chef server API in the background so that you get a
chef-solo-like local interface but all the APIs in core chef which
expect to talk to a server can talk to a server.
On 3/5/15 7:08 AM, gregory grey wrote:
Ohai, chefs!
I'm running the following:
cluster= Chef::DataBag.new
cluster.name <http://legs.name>("#{current}-cluster")
cluster.create
to create the databag as a preparatory step.
When testes via kitchen, I get an error
I cannot read /tmp/kitchen/client.pem, which you told me to use
to sign requests!
Thanks,
Greg
Archive powered by MHonArc 2.6.16.