Created
July 8, 2010 14:37
-
-
Save gdi/468085 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ scp root@myserver:/etc/chef/webui.pem /tmp/webui.pem | |
webui.pem 100% 1675 1.6KB/s 00:00 | |
$ scp root@myserver:/etc/chef/validation.pem /tmp/validation.pem | |
validation.pem 100% 1679 1.6KB/s 00:00 | |
$ knife configure -i | |
Where should I put the config file? [~/.chef/knife.rb] ~/.chef/staging_knife.rb | |
Please enter the chef server URL: [http://localhost:4000] http://myserver:4000 | |
Please enter a clientname for the new client: [drat] | |
Please enter the existing admin clientname: [chef-webui] | |
Please enter the location of the existing admin client's private key: [/etc/chef/webui.pem] /tmp/webui.pem | |
Please enter the validation clientname: [chef-validator] | |
Please enter the location of the validation key: [/etc/chef/validation.pem] /tmp/validation.pem | |
Please enter the path to a chef repository (or leave blank): /usr/src/kitchen/chef-repo | |
WARN: Creating initial API user... | |
WARN: HTTP Request Returned 401 Unauthorized: Failed to authenticate! | |
/Users/drat/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/net/http.rb:2213:in `error!': 401 "Unauthorized" (Net::HTTPServerException) | |
from /Users/drat/.rvm/gems/ruby-1.9.1-p378/gems/chef-0.9.6/lib/chef/rest.rb:217:in `block in api_request' | |
from /Users/drat/.rvm/gems/ruby-1.9.1-p378/gems/chef-0.9.6/lib/chef/rest.rb:268:in `retriable_rest_request' | |
from /Users/drat/.rvm/gems/ruby-1.9.1-p378/gems/chef-0.9.6/lib/chef/rest.rb:198:in `api_request' | |
from /Users/drat/.rvm/gems/ruby-1.9.1-p378/gems/chef-0.9.6/lib/chef/rest.rb:112:in `post_rest' | |
from /Users/drat/.rvm/gems/ruby-1.9.1-p378/gems/chef-0.9.6/lib/chef/api_client.rb:236:in `save' | |
from /Users/drat/.rvm/gems/ruby-1.9.1-p378/gems/chef-0.9.6/lib/chef/knife/client_create.rb:55:in `run' | |
from /Users/drat/.rvm/gems/ruby-1.9.1-p378/gems/chef-0.9.6/lib/chef/knife/configure.rb:86:in `run' | |
from /Users/drat/.rvm/gems/ruby-1.9.1-p378/gems/chef-0.9.6/lib/chef/application/knife.rb:115:in `run' | |
from /Users/drat/.rvm/gems/ruby-1.9.1-p378/gems/chef-0.9.6/bin/knife:25:in `<top (required)>' | |
from /Users/drat/.rvm/gems/ruby-1.9.1-p378/bin/knife:19:in `load' | |
from /Users/drat/.rvm/gems/ruby-1.9.1-p378/bin/knife:19:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment