這似乎是一個容易的事情來解決,但我不能讓刀爲我創建一個新的用戶。我是管理儀表板的用戶主廚服務器。我用root用戶創建了一個具有初始命令knife configure --initial
的管理員用戶。現在我試圖爲名爲「myuser」的本地用戶創建一個api用戶。廚師刀創建未能創建API用戶
所以,我這樣做:
[email protected]:~$ knife configure --initial
Overwrite /home/myuser/.chef/knife.rb? (Y/N)y
Please enter the chef server URL: [https://chefserver:443]
Please enter a name for the new user: [myuser]
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):
Creating initial API user...
Please enter a password for the new user:
ERROR: The data in your request was invalid
Response: Field 'display_name' missing
爲什麼不能創建一個API的用戶?
有沒有機會嘗試使用新的Chef Server 12候選版本? – coderanger 2014-09-30 22:43:26
我正在使用:chef-server-core_12.0.0-rc.4-1_amd64.deb – Kryten 2014-10-01 20:04:12