Skip to content

Instantly share code, notes, and snippets.

@paul
Created July 1, 2010 20:57
Show Gist options
  • Select an option

  • Save paul/460548 to your computer and use it in GitHub Desktop.

Select an option

Save paul/460548 to your computer and use it in GitHub Desktop.
log_level :info
log_location STDOUT
node_name "client"
ssl_verify_mode :verify_none
chef_server_url "https://api.opscode.com/organizations/absperf"
validation_client_name "absperf-validator"
validation_key "/tmp/vagrant-chef/validation.pem"
client_key "/etc/chef/client.pem"
file_store_path "/srv/chef/file_store"
file_cache_path "/srv/chef/cache"
pid_file "/var/run/chef/chef-client.pid"
Mixlib::Log::Formatter.show_time = true
{"instance_role":"vagrant","vagrant":{"directory":"/vagrant","config":{"linux":{"halt_timeout":15,"halt_check_interval":1},"vm":{"provisioner":"chef_server","box":"ssbe","sync_crontab_entry_file":"/tmp/crontab-entry","system":"linux","box_ovf":"box.ovf","shared_folders":{"v-root":{"hostpath":".","syncpath":null,"guestpath":"/vagrant"}},"shared_folder_uid":null,"defined_vms":{"db":"#<Vagrant::Config::VMConfig::SubVM:0x101d4e250>","app":"#<Vagrant::Config::VMConfig::SubVM:0x101d4e110>"},"shared_folder_gid":null,"base_mac":"080027431DDB","network_options":[null,{"ip":"192.168.54.10","netmask":"255.255.255.0","name":null,"adapter":1}],"boot_mode":"vrdp","sync_opts":"-terse -group -owner -batch -silent","forwarded_ports":{"ssh":{"auto":false,"protocol":"TCP","guestport":22,"hostport":22146,"adapter":0}},"auto_port_range":"2200..2250","disk_image_format":"VMDK","sync_script":"/tmp/sync"},"loaded":true,"chef":{"cookbooks_path":"cookbooks","chef_server_url":"https://api.opscode.com/organizations/absperf","roles_path":[],"validation_key_path":"/Users/rando/Code/api/ssbe-chef/config/absperf-validator.pem","provisioning_path":"/tmp/vagrant-chef","validation_client_name":"absperf-validator","log_level":"info","client_key_path":"/etc/chef/client.pem","node_name":"client"},"package":{"extension":".box","name":"vagrant"},"vagrant":{"dotfile_name":".vagrant","home":"~/.vagrant","log_output":"#<IO:0x1001b4b98>"},"ssh":{"private_key_path":"/Users/rando/.rvm/gems/ruby-1.8.7-p174@chef/gems/vagrant-0.4.1/lib/vagrant/../../keys/vagrant","port":22,"forwarded_port_key":"ssh","username":"vagrant","timeout":30,"host":"localhost","max_tries":10}}},"run_list":["role[tokyotyrant]","role[mongodb]","role[postgresql]","role[mysql]","role[amq]","role[logger]","role[testing]","role[db]"]}
vagrant provision db
[db] Provisioning enabled with Vagrant::Provisioners::ChefServer
[db] Beginning provisioning process...
[db] Setting permissions on chef provisioning folder...
[db] Creating folder to hold client key...
[db] Uploading chef client validation key...
[db] Generating chef JSON and uploading...
[db] Uploading chef configuration script...
[db] Running chef-client...
[db] /usr/lib/ruby/1.8/net/http.rb:2101:in `error!': stderr
[db] : : stderr
[db] 401 "Unauthorized": stderr
[db] (: stderr
[db] Net::HTTPServerException: stderr
[db] [Thu, 01 Jul 2010 13:55:07 -0700] WARN: HTTP Request Returned 401 Unauthorized: Failed authorization
: stdout
[db] )
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.4/bin/../lib/chef/rest.rb:217:in `api_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.4/bin/../lib/chef/rest.rb:268:in `retriable_rest_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.4/bin/../lib/chef/rest.rb:198:in `api_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.4/bin/../lib/chef/rest.rb:101:in `get_rest'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.4/bin/../lib/chef/client.rb:177:in `build_node'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.4/bin/../lib/chef/client.rb:74:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.4/bin/../lib/chef/application/client.rb:215:in `run_application'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.4/bin/../lib/chef/application/client.rb:207:in `loop'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.4/bin/../lib/chef/application/client.rb:207:in `run_application'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.4/bin/../lib/chef/application.rb:62:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.4/bin/chef-client:26
from /usr/bin/chef-client:19:in `load'
from /usr/bin/chef-client:19
: stderr
=====================================================================
Vagrant experienced an error!
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
cd /tmp/vagrant-chef && sudo chef-client -c client.rb -j dna.json
=====================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment