knife-hacks
knife-hacks copied to clipboard
backing up ApiClients
The backup/restore scripts don't seem complete without the ApiClient objects. How are you accounting for those in your environments? Thanks.
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.
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.