[chef] Re: RE: Re: RE: Re: Migrating chef servers


Chronological Thread 
  • From: Ranjib Dey < >
  • To:
  • Subject: [chef] Re: RE: Re: RE: Re: Migrating chef servers
  • Date: Wed, 4 Jul 2012 02:30:41 +0530

irb>
require "chef"
Chef::Config.from_file('your knife.rb')
Chef::ApiClient.list.keys.each do |ac_name|
  ac=Chef::ApiClient.load(ac_name)
  p ac.public_key
end


On Wed, Jul 4, 2012 at 2:01 AM, Kendrick Martin < " target="_blank"> > wrote:

How would I go about retrieving the public key from the db?

 

From: Ranjib Dey [mailto: " target="_blank"> ]
Sent: Tuesday, July 03, 2012 11:11 AM
To: " target="_blank">
Subject: [chef] Re: RE: Re: Migrating chef servers

 

can u verify  if your old and new couch db has the same public key for the apiclient you are using in knife.rb?

 

On Tue, Jul 3, 2012 at 11:34 PM, Kendrick Martin < " target="_blank"> > wrote:

I tried tarring the /var/lib/chef, /etc/chef, /etc/couchdb, and  /var/lib/couchdb  directories on my old server, and replacing them on my new server, but I’m getting failed to authenticate errors when using knife against the new server.

 

From: Ranjib Dey [mailto: " target="_blank"> ]
Sent: Tuesday, July 03, 2012 10:53 AM
To: " target="_blank">
Subject: [chef] Re: Migrating chef servers

 

replicate the couchdb

On Tue, Jul 3, 2012 at 10:35 PM, Kendrick Martin < " target="_blank"> > wrote:

Is there an easy way to migrate chef servers without having to re-gen the client keys for every node and copy a new validation.pem file?

 

Kendrick Martin

Install Engineer

O: +1 503.553.2462

 

webtrends

 

Real -Time Relevance. Remarkable ROI.™

 

London | Portland | San Francisco | Melbourne | Tokyo

 

 

 

 

 

 

 

 

 





Archive powered by MHonArc 2.6.16.

§