[chef] problems specifying validation.pem for restored chef server


Chronological Thread 
  • From:
  • To: chef < >
  • Subject: [chef] problems specifying validation.pem for restored chef server
  • Date: Tue, 7 Feb 2012 14:27:51 -0800


hi

is there anything special i need to do to get my new chef server to use
the validation.pem and webui.pem i "tell" it to use? here's what i'm doing:

# /etc/init.d/chef-server stop
# curl -XDELETE http://127.0.0.1:5984/chef
{"ok":true}

# cp /tmp/validation.pem.from-backup /etc/chef/validation.pem
# cp /tmp/webui.pem.from-backup /etc/chef/webui.pem

# /etc/init.d/chef-server start

but.. it creates new keys anyway:

[Tue, 07 Feb 2012 22:19:25 +0000] INFO: Creating validation key...
[Tue, 07 Feb 2012 22:19:25 +0000] INFO: Creating new key pair for chef-webui

what to do?

my goal is to be able to bring up a chef server from backups in case of
emergency.

kallen



Archive powered by MHonArc 2.6.16.

§