- From: Steven Danna <
>
- To:
- Subject: [chef] Re: [Chef] Change Access Right for Data Bags
- Date: Mon, 12 Mar 2012 07:05:49 -0700
Hi,
In order to do this, the API client for that node will need admin
privileges, which you can do using `knife client edit` on the client
and setting the admin flag to true. Note that making the client an
admin also means it has privileges above and beyond simply editing
data bags, thus you will want to ensure that you can keep its key
secure.
Sincerely,
Steven
On Mon, Mar 12, 2012 at 3:56 AM,
<
>
wrote:
>
Hi,
>
>
I want to edit a data bag in my recipe. I am using the code from:
>
http://wiki.opscode.com/display/chef/Data+Bags
>
>
Editing a Data Bag Item within a Recipe:
>
sam = data_bag_item("users", "sam")
>
sam["Full Name"] = "Samantha"
>
sam.save
>
>
But I get the following error: Net::HTTPServerException: 403 "Forbidden"
>
>
I think I have to adjust some access rights in the couchdb, but i have no
>
idea how to do that.
>
>
I hope you can help me.
>
>
Thanks!
>
>
>
--
>
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
>
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a
Archive powered by MHonArc 2.6.16.