knife-hacks icon indicating copy to clipboard operation
knife-hacks copied to clipboard

backing up ApiClients

Open eabbott opened this issue 12 years ago • 2 comments

The backup/restore scripts don't seem complete without the ApiClient objects. How are you accounting for those in your environments? Thanks.

eabbott avatar May 09 '12 17:05 eabbott

This plugin was written mostly with Hosted Chef in mind which has a more complex authorization system than Open Source Chef. Correctly dealing with the API clients on the Hosted Chef side would require some work to ensure permissions were all correctly set. Currently, I encourage people who use this plugin to simply allow the first run of the chef-client to recreate the API clients for the nodes.

stevendanna avatar May 09 '12 21:05 stevendanna

Thanks Steven! That looks like it'll work, so long as we wrap the chef-client call to delete it's client.pem and retry if it gets an unauthorized exception.

eabbott avatar May 11 '12 13:05 eabbott