Hello, In chef 11, when I executed “knife configure —initial” on workstation, copied from below pem files from chef server. - /etc/chef-server/admin.pm - /etc/chef-server/chef-validator.pem But In chef 12, there are not these pem files. Which pem file can I use when I execute “knife configure —initial” on workstation? [Chef Workstation]# knife configure --initial WARNING: No knife configuration file found Where should I put the config file? [/root/.chef/knife.rb] Please enter the chef server URL: [https://xxx:443] https://x.x.x.x:443 Please enter a name for the new user: [root] Please enter the existing admin name: [admin] Please enter the location of the existing admin's private key: [/etc/chef-server/admin.pem] Please enter the validation clientname: [chef-validator] Please enter the location of the validation key: [/etc/chef-server/chef-validator.pem] Please enter the path to a chef repository (or leave blank): /root/chef-repo Creating initial API user... Please enter a password for the new user: ERROR: Your private key could not be loaded from /etc/chef-server/admin.pem Check your configuration file and ensure that your private key is readable [Chef Workstation]# find /opt/chefdk -name "*.pem" | egrep "admin|valid" /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.2.1/support/dummy-validation.pem /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-3.1.5/spec/config/validator.pem /opt/chefdk/embedded/apps/test-kitchen/support/dummy-validation.pem /opt/chefdk/embedded/apps/berkshelf/spec/config/validator.pem [Chef Server]# find /etc/{chef,opscode} -name "*.pem" /etc/opscode/worker-private.pem /etc/opscode/worker-public.pem /etc/opscode/webui_priv.pem /etc/opscode/webui_pub.pem /etc/opscode/pivotal.pem I installed knife-solo by following command on workstation. # chef gem install knife-solo Version: - chef-server-core-12.0.0_rc.4-1.el5.x86_64 - chefdk-0.3.0-1.x86_64 - knife-solo (0.4.2) Thank you. -- idzzy |
Archive powered by MHonArc 2.6.16.