[chef] Re: API Interaction from node


Chronological Thread 
  • From: AJ Christensen < >
  • To:
  • Subject: [chef] Re: API Interaction from node
  • Date: Wed, 9 Jan 2013 10:53:45 +1300

Yo Ant,

You won't be able to update data bag items already created with a node like that, at least with the default permissions? I do believe you will be able to create *new* data-bag items inside of a data-bag.

Hosted chef or OSS?

On OSS, you can make the node an admin. Hosted/Private, you can use RBAC to allow create items in that d-bag. knife-acls may help with automating this.

Cheers,

AJ


On 9 January 2013 10:49, Anthony Goddard < " target="_blank"> > wrote:
Hi all,
I'm writing a little script to populate a databag each time it's run - the purpose is to store mysql bin log data in a databag when a slave is backed up. I was originally thinking of using the API from the node and just using the local client.pem for authentication, but while I can read databags this way, I get a 403 when writing to them, so I'm looking for a breakdown of what objects the client is able to modify.
I could also just change where I'm storing the data, or if that doesn't work, some middleware with another key will work, but I'd be interested in hearing about any other approaches if I'm Doing It Wrong™.

fwiw, the script that's interacting with chef is run from cron.


Cheers,
Ant





Archive powered by MHonArc 2.6.16.

§