[chef] Re: Re: Export/Import clients from one chef server to another


Chronological Thread 
  • From: Barthélemy Vessemont < >
  • To:
  • Subject: [chef] Re: Re: Export/Import clients from one chef server to another
  • Date: Wed, 19 Feb 2014 23:39:27 +0100

Ohai,

I used a quick workaround for the missing chef-validator file backup : I created a secondary validator account with knife client subcommand and used it for bootstraping nodes. This new dedicated account is backuped by the plugin and can be used by Chef admins.


On Wed, Feb 19, 2014 at 11:27 PM, Joe Nuspl < " target="_blank"> > wrote:
We used https://github.com/mdxp/knife-backup and it worked great.  The only thing we didn’t copy over was the chef-validator and chef-webui client keys.

Joe


Hello. I’m preparing to upgrade from Chef Server 10 to 11 on a newly built server and I’m looking for a way to export/import my node and client records so that all of the machines do not need to be re-keyed. The problem I’m running into is that I can’t seem to find a way to explicitly set the public key of a client. I tried `knife client edit` and it looks like it would work, but it actually doesn’t change the key. I’ve also tried in shef by using the API to pull down a client object, update the client.public_key and then save it back, and that doesn’t work either.
 
Lastly, I found a knife plugin called “client from file” (https://gist.github.com/mhalligan/3101750) which uses a similar technique to my shef experiment, but still no luck.
 
Can anyone tell me how to set the public key of a client? Alternately is there some existing process for how to migrate node/client objects from one server to another that I’m just overlooking?
 
My next step is to go spelunking in the postgres DB and see if I can just jigger the public key in there. Will that work? Is there a better way?




--
Barthélemy Vessemont - " target="_blank">
Ingénieur en informatique diplômé de l'UTC (Compiègne)



Archive powered by MHonArc 2.6.16.

§