Skip to content

Instantly share code, notes, and snippets.

@vinitkhandagle
Last active December 14, 2015 23:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinitkhandagle/5164417 to your computer and use it in GitHub Desktop.
Save vinitkhandagle/5164417 to your computer and use it in GitHub Desktop.
Bootstrapping a Newly Installed Vagrant Box
linbynd:=> {master} ~/vagrant_machines$ knife bootstrap 192.168.1.3 -x vagrant -P vagrant --sudo
Bootstrapping Chef on 192.168.1.3
192.168.1.3 --2013-03-14 19:21:32-- http://opscode.com/chef/install.sh
192.168.1.3
192.168.1.3 Resolving opscode.com (opscode.com)...
192.168.1.3 184.106.28.83
192.168.1.3
192.168.1.3 Connecting to opscode.com (opscode.com)|184.106.28.83|:80...
192.168.1.3 connected.
192.168.1.3
192.168.1.3 HTTP request sent, awaiting response...
192.168.1.3 301 Moved Permanently
192.168.1.3 Location: http://www.opscode.com/chef/install.sh [following]
192.168.1.3 --2013-03-14 19:21:33-- http://www.opscode.com/chef/install.sh
192.168.1.3 Resolving www.opscode.com (www.opscode.com)...
192.168.1.3 184.106.28.83
192.168.1.3 Reusing existing connection to opscode.com:80.
192.168.1.3 HTTP request sent, awaiting response...
192.168.1.3 200 OK
192.168.1.3 Length: 6470 (6.3K) [application/x-sh]
192.168.1.3 Saving to: `STDOUT'
192.168.1.3
0% [ ] 0 --.-K/s
192.168.1.3 Downloading Chef 11.2.0 for ubuntu...
192.168.1.3
192.168.1.3
192.168.1.3 100%[======================================>] 6,470 24.9K/s
192.168.1.3
192.168.1.3 100%[======================================>] 6,470 24.9K/s in 0.3s
192.168.1.3
192.168.1.3
192.168.1.3 2013-03-14 19:21:34 (24.9 KB/s) - written to stdout [6470/6470]
192.168.1.3
192.168.1.3
192.168.1.3 Installing Chef 11.2.0
192.168.1.3
192.168.1.3 Selecting previously unselected package chef.
192.168.1.3
192.168.1.3 (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ...
192.168.1.3 58087 files and directories currently installed.)
192.168.1.3
192.168.1.3 Unpacking chef (from .../chef_11.2.0_i386.deb) ...
192.168.1.3
192.168.1.3 Setting up chef (11.2.0-1.ubuntu.11.04) ...
192.168.1.3
192.168.1.3 Thank you for installing Chef!
192.168.1.3
192.168.1.3 Starting Chef Client, version 11.2.0
192.168.1.3
192.168.1.3 Creating a new client identity for vagrant-ubuntu-precise-32 using the validator key.
192.168.1.3
192.168.1.3 resolving cookbooks for run list: []
192.168.1.3
192.168.1.3 Synchronizing Cookbooks:
192.168.1.3
192.168.1.3 Compiling Cookbooks...
192.168.1.3
192.168.1.3 [2013-03-14T19:27:08+00:00] WARN: Node vagrant-ubuntu-precise-32 has an empty run list.
192.168.1.3
192.168.1.3 Converging 0 resources
192.168.1.3
192.168.1.3 Chef Client finished, 0 resources updated
192.168.1.3
linbynd:=> {master} ~/vagrant_machines$ vagrant provision cloud
[cloud] Running provisioner: Vagrant::Provisioners::ChefClient...
[cloud] Creating folder to hold client key...
[cloud] Uploading chef client validation key...
[cloud] Generating chef JSON and uploading...
[cloud] Running chef-client...
stdin: is not a tty
[2013-03-14T19:52:48+00:00] INFO: *** Chef 11.2.0 ***
[2013-03-14T19:52:48+00:00] INFO: [inet6] no default interface, picking the first ipaddress
[2013-03-14T19:52:48+00:00] INFO: ipaddress and ip6address are set from different interfaces (eth0 & eth1), macaddress has been set using the ipaddress interface
[2013-03-14T19:52:50+00:00] INFO: Run List is [recipe[ohai]]
[2013-03-14T19:52:50+00:00] INFO: Run List expands to [ohai]
[2013-03-14T19:52:52+00:00] INFO: Starting Chef Run for vagrant-ubuntu-precise-32
[2013-03-14T19:52:52+00:00] INFO: Running start handlers
[2013-03-14T19:52:52+00:00] INFO: Start handlers complete.
[2013-03-14T19:52:54+00:00] INFO: Loading cookbooks [ohai]
[2013-03-14T19:52:54+00:00] INFO: ohai plugins will be at: /etc/chef/ohai_plugins
[2013-03-14T19:52:54+00:00] INFO: Processing remote_directory[/etc/chef/ohai_plugins] action create (ohai::default line 30)
[2013-03-14T19:52:54+00:00] INFO: Processing cookbook_file[/etc/chef/ohai_plugins/README] action create (dynamically defined)
[2013-03-14T19:52:54+00:00] INFO: Processing ohai[custom_plugins] action reload (ohai::default line 44)
[2013-03-14T19:52:54+00:00] INFO: [inet6] no default interface, picking the first ipaddress
[2013-03-14T19:52:54+00:00] INFO: ipaddress and ip6address are set from different interfaces (eth0 & eth1), macaddress has been set using the ipaddress interface
[2013-03-14T19:52:54+00:00] INFO: ohai[custom_plugins] reloaded
[2013-03-14T19:52:54+00:00] INFO: Processing remote_directory[/etc/chef/ohai_plugins] action nothing (ohai::default line 30)
[2013-03-14T19:52:54+00:00] INFO: Processing ohai[custom_plugins] action nothing (ohai::default line 44)
[2013-03-14T19:52:56+00:00] INFO: Chef Run complete in 3.956778634 seconds
[2013-03-14T19:52:56+00:00] INFO: Removing cookbooks/ohai/files/default/plugins/README from the cache; it is no longer needed by chef-client.
[2013-03-14T19:52:56+00:00] INFO: Running report handlers
[2013-03-14T19:52:56+00:00] INFO: Report handlers complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment