public
Last active

Bootstrapping a Newly Installed Vagrant Box

  • Download Gist
Bootstrap_vagrantvm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.