Chef-Server does not generate admin.pem

家住魔仙堡 提交于 2019-12-11 14:47:54

问题


I have used chef version 11 without any issues. Now that I hear the new version 12 is out, I wanted to use the same. So, on a fresh aws instance I downloaded the chef-server-core-12.0.0-1 installed it right away. Now going forward, I used the command,

chef-server-ctl reconfigure

to start all the services as mentioned in the official document. Now this step should also create a new admin, a validator that will be used in knife.rb. This was taken care of in the chef version 11. Now I am unable to generate the admin.pem and chef-validator.pem without which I cannot setup a new workstation.


回答1:


I can't do more than give you the documentation link:

http://docs.chef.io/install_server.html#standalone

Read carefully and you'll see you have to create the first organization and first admin for this organization (steps 5 and 6).

Chef 12 is a major version change, which state there's probably breaking changes...

A lot of communication have been made on chef.io blog, take time to read about it before giving it a try, you'll save time.




回答2:


admin.pem is nothing but the clients pem file.

whenever you bootstrap the node using knife command. client.pem or admin.pem or node.pem file is automatically generated under /etc/chef/client.pem



来源:https://stackoverflow.com/questions/28191009/chef-server-does-not-generate-admin-pem

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!