Skip to content

Instantly share code, notes, and snippets.

@derekperkins
Created October 13, 2013 07:52
Show Gist options
  • Save derekperkins/6959368 to your computer and use it in GitHub Desktop.
Save derekperkins/6959368 to your computer and use it in GitHub Desktop.
Revamp provisioning
Derek@Derek /cygdrive/c/vagrant/nozzle-chef
$ vagrant up --provider=vmware_workstation
Bringing machine 'default' up with 'vmware_workstation' provider...
[default] Box 'derek-vagrant-revamp' was not found. Fetching box from specified URL for
the provider 'vmware_workstation'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
full box prior to discovering this error.
Downloading or copying the box...
Extracting box...ate: 1969k/s, Estimated time remaining: --:--:--)
Successfully added box 'derek-vagrant-revamp' with provider 'vmware_desktop'!
[default] Cloning VMware VM: 'derek-vagrant-revamp'. This can take some time...
[default] Verifying vmnet devices are healthy...
[default] Preparing network adapters...
[default] Starting the VMware VM...
[default] Waiting for the VM to finish booting...
[default] The machine is booted and ready!
[default] Forwarding ports...
[default] -- 22 => 2222
[default] -- 80 => 8082
[default] -- 3306 => 3366
[default] Setting hostname...
No error message
Derek@Derek /cygdrive/c/vagrant/nozzle-chef
$ vagrant provision
[default] Running provisioner: shell...
[default] Running: C:/cygwin64/tmp/vagrant-shell20131013-4560-p3j90q
sudo: unable to resolve host local
stdin: is not a tty
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libcurl3
The following NEW packages will be installed:
curl libcurl3
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 373 kB of archives.
After this operation, 911 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libcurl3 amd64 7.22.0-3ubuntu4.2 [236 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main curl amd64 7.22.0-3ubuntu4.2 [137 kB]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Fetched 373 kB in 1s (345 kB/s)
Selecting previously unselected package libcurl3.
(Reading database ... 76466 files and directories currently installed.)
Unpacking libcurl3 (from .../libcurl3_7.22.0-3ubuntu4.2_amd64.deb) ...
Selecting previously unselected package curl.
Unpacking curl (from .../curl_7.22.0-3ubuntu4.2_amd64.deb) ...
Processing triggers for man-db ...
Setting up libcurl3 (7.22.0-3ubuntu4.2) ...
Setting up curl (7.22.0-3ubuntu4.2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6790 100 6790 0 0 12738 0 --:--:-- --:--:-- --:--:-- 24078
sudo: unable to resolve host local
Downloading Chef for ubuntu...
Installing Chef
Selecting previously unselected package chef.
(Reading database ... 76498 files and directories currently installed.)
Unpacking chef (from .../tmp.NtkmIC3e/chef__amd64.deb) ...
Setting up chef (11.6.2-1.ubuntu.12.04) ...
Thank you for installing Chef!
[default] Running provisioner: chef_client...
Creating folder to hold client key...
Uploading chef client validation key...
Uploading chef encrypted data bag secret key...
C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/communicators/ssh/communicator.rb:120:in `initialize': No such file or directory - C:/vagrant/.chef/secret_key (Errno::ENOENT)
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/communicators/ssh/communicator.rb:120:in `open'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/communicators/ssh/communicator.rb:120:in `block in upload'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/communicators/ssh/communicator.rb:389:in `block in scp_connect'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/communicators/ssh/communicator.rb:154:in `connect'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/communicators/ssh/communicator.rb:387:in `scp_connect'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/communicators/ssh/communicator.rb:114:in `upload'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/provisioners/chef/provisioner/chef_client.rb:48:in `upload_encrypted_data_bag_secret'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/provisioners/chef/provisioner/chef_client.rb:23:in `provision'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/provision.rb:74:in `run_provisioner'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/provision.rb:62:in `block in call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/provision.rb:58:in `each'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/provision.rb:58:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in `block in run'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/util/busy.rb:19:in `busy'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in `run'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/call.rb:51:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in `block in run'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/util/busy.rb:19:in `busy'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in `run'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/call.rb:51:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
from C:/Users/Derek/.vagrant.d/gems/gems/vagrant-vmware-workstation-2.0.5/lib/vagrant-vmware-workstation/action_farm.rb:240:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builder.rb:116:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in `block in run'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/util/busy.rb:19:in `busy'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in `run'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/machine.rb:147:in `action'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/provision/command.rb:26:in `block in execute'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/plugin/v2/command.rb:185:in `block in with_target_vms'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/plugin/v2/command.rb:183:in `each'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/plugin/v2/command.rb:183:in `with_target_vms'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/provision/command.rb:25:in `execute'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/cli.rb:38:in `execute'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/environment.rb:478:in `cli'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.4/bin/vagrant:96:in `<top (required)>'
from C:/HashiCorp/Vagrant/embedded/gems/bin/vagrant:23:in `load'
from C:/HashiCorp/Vagrant/embedded/gems/bin/vagrant:23:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment