1
我需要我的廚師的服務器上更改默認attibute validation_client_name我ORGNAME驗證器,因爲它使一個錯誤,而的Bootstrap我的節點:更改默認validation_client_name爲「ORGNAME驗證器」
Chef encountered an error attempting to create the client "mynode-1"
Authentication Error:
---------------------
Failed to authenticate to the chef server (http 401).
Server Response:
----------------
Invalid signature for user or client 'chef-validator'
Relevant Config Settings:
-------------------------
chef_server_url "https://chef.myorgname.com/organizations/orgname"
validation_client_name "chef-validator"
validation_key "/etc/chef/validation.pem"
If these settings are correct, your validation_key may be invalid.
[2015-04-02T15:30:44+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 1.426514217 seconds
[2015-04-02T15:30:44+00:00] ERROR: 401 "Unauthorized"
[2015-04-02T15:30:44+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
我該怎麼做?
廚師,服務器12
如果我手動將client.rb配置更改爲'validation_client_name'orgname-validator「',然後啓動chef-client,它會在我的主服務器上創建一個節點和客戶端,並且一切正常。 make'validation_client_name「orgname-validator」'一個默認配置用於自舉? – 2015-04-06 13:38:03
@Blasterdick請發佈client.rb和knife.rb – 2015-04-07 14:27:37
使用我的client.rb&knife.rb我可以管理節點/客戶端/食譜/等,但是當我引導新節點時,廚師將「validation_client_name」設置爲「chef-驗證器「,然後節點從廚師服務器獲得401錯誤。 – 2015-04-09 12:38:46