ubuntu chef knife 설정
1.knife 환경설정
admin@ip-10-2-2-200:~$ knife configure Please enter the chef server URL: [https://ip-10-2-2-200.computer-1.com:443] https://ip-10-2-2-200.computer-1.com:443 Please enter an existing username or clientname for the API: [admin] 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): ***** You must place your client key in: /home/admin/.chef/admin.pem Before running commands with Knife! ***** You must place your validation key in: /etc/chef-server/chef-validator.pem Before generating instance data with Knife! ***** Configuration file written to /home/admin/.chef/knife.rb admin@ip-10-2-2-200:~$ echo "cookbook_path ['/etc/chef-server/chef-repo/cookbooks']" >> /home/admin/.chef/knife.rb
2.knife 확인
admin@ip-10-2-2-200:~$ knife client list chef-validator chef-webui
ERROR 발생시 knife ssl fetch 실행하면 됨
admin@ip-10-2-2-200:~$ knife node list