Skip to content

Instantly share code, notes, and snippets.

@nickmarden
Created November 5, 2012 21:42
Show Gist options
  • Select an option

  • Save nickmarden/4020519 to your computer and use it in GitHub Desktop.

Select an option

Save nickmarden/4020519 to your computer and use it in GitHub Desktop.
[nick@nick-mba ironfan-homebase] (master)$ knife cluster bootstrap --yes my_first_cluster-database
Inventorying servers in my_first_cluster cluster, database facet, all servers
my_first_cluster: Loading chef
my_first_cluster: Loading ec2
my_first_cluster: Reconciling DSL and provider information
+-----------------------------+-------+---------+----------+------------+------+------------+--------------+---------------+------------+
| Name | Chef? | State | Flavor | AZ | Env | MachineID | Public IP | Private IP | Created On |
+-----------------------------+-------+---------+----------+------------+------+------------+--------------+---------------+------------+
| my_first_cluster-database-0 | yes | running | m1.large | us-west-1a | dev | i-28850471 | 50.18.71.186 | 10.174.19.139 | 2012-11-05 |
+-----------------------------+-------+---------+----------+------------+------+------------+--------------+---------------+------------+
Running bootstrap on my_first_cluster-database-0...
my_first_cluster-database-0: Running bootstrap
...
Mon Nov 5 22:00:14 UTC 2012
****
**** First run of chef:
****
[2012-11-05T22:00:17+00:00] INFO: *** Chef 10.14.4 ***
[2012-11-05T22:00:18+00:00] INFO: Setting the run_list to ["role[systemwide]", "role[ssh]", "role[mysql_server]", "mysql", "role[my_first_cluster_cluster]", "role[my_first_cluster_database]"] from JSON
[2012-11-05T22:00:41+00:00] INFO: Run List is [role[systemwide], role[ssh], role[mysql_server], recipe[mysql], role[my_first_cluster_cluster], role[my_first_cluster_database]]
[2012-11-05T22:00:41+00:00] INFO: Run List expands to [build-essential, motd, zsh, emacs, ntp, mysql, mysql::server]
[2012-11-05T22:00:41+00:00] INFO: Starting Chef Run for my_first_cluster-database-0
[2012-11-05T22:00:41+00:00] INFO: Running start handlers
[2012-11-05T22:00:41+00:00] INFO: Start handlers complete.
[2012-11-05T22:00:43+00:00] INFO: Loading cookbooks [build-essential, emacs, motd, mysql, ntp, openssl, zsh]
[2012-11-05T22:00:43+00:00] INFO: Storing updated cookbooks/emacs/recipes/default.rb in the cache.
[2012-11-05T22:00:44+00:00] INFO: Storing updated cookbooks/emacs/recipes/snapshot.rb in the cache.
[2012-11-05T22:00:44+00:00] INFO: Storing updated cookbooks/emacs/attributes/default.rb in the cache.
[2012-11-05T22:00:44+00:00] INFO: Storing updated cookbooks/emacs/metadata.json in the cache.
[2012-11-05T22:00:45+00:00] INFO: Storing updated cookbooks/emacs/metadata.rb in the cache.
[2012-11-05T22:00:45+00:00] INFO: Storing updated cookbooks/emacs/README.md in the cache.
[2012-11-05T22:00:45+00:00] INFO: Storing updated cookbooks/mysql/recipes/client.rb in the cache.
[2012-11-05T22:00:45+00:00] INFO: Storing updated cookbooks/mysql/recipes/default.rb in the cache.
[2012-11-05T22:00:46+00:00] INFO: Storing updated cookbooks/mysql/recipes/ruby.rb in the cache.
[2012-11-05T22:00:46+00:00] INFO: Storing updated cookbooks/mysql/recipes/server.rb in the cache.
[2012-11-05T22:00:46+00:00] INFO: Storing updated cookbooks/mysql/recipes/server_ec2.rb in the cache.
[2012-11-05T22:00:47+00:00] INFO: Storing updated cookbooks/mysql/libraries/helpers.rb in the cache.
[2012-11-05T22:00:47+00:00] INFO: Storing updated cookbooks/mysql/attributes/client.rb in the cache.
[2012-11-05T22:00:48+00:00] INFO: Storing updated cookbooks/mysql/attributes/server.rb in the cache.
[2012-11-05T22:00:48+00:00] INFO: Storing updated cookbooks/mysql/.git in the cache.
[2012-11-05T22:00:48+00:00] INFO: Storing updated cookbooks/mysql/.gitignore in the cache.
[2012-11-05T22:00:48+00:00] INFO: Storing updated cookbooks/mysql/CHANGELOG.md in the cache.
[2012-11-05T22:00:48+00:00] INFO: Storing updated cookbooks/mysql/CONTRIBUTING in the cache.
[2012-11-05T22:00:49+00:00] INFO: Storing updated cookbooks/mysql/Gemfile in the cache.
[2012-11-05T22:00:50+00:00] INFO: Storing updated cookbooks/mysql/LICENSE in the cache.
[2012-11-05T22:00:50+00:00] INFO: Storing updated cookbooks/mysql/metadata.rb in the cache.
[2012-11-05T22:00:51+00:00] INFO: Storing updated cookbooks/mysql/README.md in the cache.
[2012-11-05T22:00:51+00:00] INFO: Storing updated cookbooks/zsh/recipes/default.rb in the cache.
[2012-11-05T22:00:51+00:00] INFO: Storing updated cookbooks/zsh/metadata.json in the cache.
[2012-11-05T22:00:51+00:00] INFO: Storing updated cookbooks/zsh/metadata.rb in the cache.
[2012-11-05T22:00:52+00:00] INFO: Storing updated cookbooks/zsh/README.md in the cache.
[2012-11-05T22:00:52+00:00] INFO: Storing updated cookbooks/openssl/recipes/default.rb in the cache.
[2012-11-05T22:00:52+00:00] INFO: Storing updated cookbooks/openssl/libraries/secure_password.rb in the cache.
[2012-11-05T22:00:53+00:00] INFO: Storing updated cookbooks/openssl/metadata.json in the cache.
[2012-11-05T22:00:53+00:00] INFO: Storing updated cookbooks/openssl/metadata.rb in the cache.
[2012-11-05T22:00:53+00:00] INFO: Storing updated cookbooks/openssl/README.md in the cache.
[2012-11-05T22:00:53+00:00] INFO: Storing updated cookbooks/motd/recipes/default.rb in the cache.
[2012-11-05T22:00:54+00:00] INFO: Storing updated cookbooks/motd/recipes/ec2.rb in the cache.
[2012-11-05T22:00:54+00:00] INFO: Storing updated cookbooks/motd/metadata.json in the cache.
[2012-11-05T22:00:54+00:00] INFO: Storing updated cookbooks/motd/metadata.rb in the cache.
[2012-11-05T22:00:55+00:00] INFO: Storing updated cookbooks/motd/README.md in the cache.
[2012-11-05T22:00:55+00:00] INFO: Storing updated cookbooks/build-essential/recipes/default.rb in the cache.
[2012-11-05T22:00:55+00:00] INFO: Storing updated cookbooks/build-essential/metadata.json in the cache.
[2012-11-05T22:00:55+00:00] INFO: Storing updated cookbooks/build-essential/metadata.rb in the cache.
[2012-11-05T22:00:56+00:00] INFO: Storing updated cookbooks/build-essential/README.md in the cache.
[2012-11-05T22:00:56+00:00] INFO: Storing updated cookbooks/ntp/recipes/default.rb in the cache.
[2012-11-05T22:00:56+00:00] INFO: Storing updated cookbooks/ntp/attributes/default.rb in the cache.
[2012-11-05T22:00:57+00:00] INFO: Storing updated cookbooks/ntp/metadata.json in the cache.
[2012-11-05T22:00:57+00:00] INFO: Storing updated cookbooks/ntp/metadata.rb in the cache.
[2012-11-05T22:00:57+00:00] INFO: Storing updated cookbooks/ntp/README.md in the cache.
[2012-11-05T22:01:00+00:00] INFO: Could not find previously defined grants.sql resource
[2012-11-05T22:01:00+00:00] INFO: Processing package[build-essential] action install (build-essential::default line 23)
[2012-11-05T22:01:01+00:00] INFO: Processing package[binutils-doc] action install (build-essential::default line 23)
[2012-11-05T22:01:05+00:00] INFO: Processing package[autoconf] action install (build-essential::default line 35)
[2012-11-05T22:01:12+00:00] INFO: Processing package[flex] action install (build-essential::default line 39)
[2012-11-05T22:01:18+00:00] INFO: Processing package[bison] action install (build-essential::default line 43)
[2012-11-05T22:01:23+00:00] INFO: Processing link[/etc/motd] action delete (motd::default line 26)
[2012-11-05T22:01:23+00:00] INFO: link[/etc/motd] deleted
[2012-11-05T22:01:23+00:00] INFO: Processing template[/etc/motd] action create (motd::default line 46)
[2012-11-05T22:01:23+00:00] INFO: template[/etc/motd] updated content
[2012-11-05T22:01:23+00:00] INFO: template[/etc/motd] owner changed to 0
[2012-11-05T22:01:23+00:00] INFO: template[/etc/motd] mode changed to 644
[2012-11-05T22:01:23+00:00] INFO: Processing template[/etc/node_name] action create (motd::default line 54)
[2012-11-05T22:01:24+00:00] INFO: template[/etc/node_name] updated content
[2012-11-05T22:01:24+00:00] INFO: template[/etc/node_name] mode changed to 644
[2012-11-05T22:01:24+00:00] INFO: Processing package[zsh] action install (zsh::default line 20)
[2012-11-05T22:01:31+00:00] INFO: Processing package[zsh-doc] action install (zsh::default line 26)
[2012-11-05T22:01:36+00:00] INFO: Processing package[emacs23-nox] action upgrade (emacs::default line 22)
[2012-11-05T22:01:51+00:00] INFO: package[emacs23-nox] upgraded from uninstalled to 23.3+1-1ubuntu4.1
[2012-11-05T22:01:51+00:00] INFO: Processing package[ntpdate] action install (ntp::default line 22)
[2012-11-05T22:01:51+00:00] INFO: Processing package[ntp] action install (ntp::default line 28)
[2012-11-05T22:01:57+00:00] INFO: Processing directory[/var/lib/ntp] action create (ntp::default line 35)
[2012-11-05T22:01:57+00:00] INFO: Processing directory[/var/log/ntpstats] action create (ntp::default line 35)
[2012-11-05T22:01:57+00:00] INFO: Processing service[ntp] action start (ntp::default line 43)
[2012-11-05T22:01:57+00:00] INFO: Processing template[/etc/ntp.conf] action create (ntp::default line 47)
[2012-11-05T22:01:58+00:00] INFO: template[/etc/ntp.conf] backed up to /var/chef/backup/etc/ntp.conf.chef-20121105220158
[2012-11-05T22:01:58+00:00] INFO: template[/etc/ntp.conf] updated content
[2012-11-05T22:01:58+00:00] INFO: template[/etc/ntp.conf] owner changed to 0
[2012-11-05T22:01:58+00:00] INFO: template[/etc/ntp.conf] group changed to 0
[2012-11-05T22:01:58+00:00] INFO: template[/etc/ntp.conf] mode changed to 644
[2012-11-05T22:01:58+00:00] INFO: Processing service[ntp] action enable (ntp::default line 55)
[2012-11-05T22:01:58+00:00] INFO: Processing service[ntp] action start (ntp::default line 55)
[2012-11-05T22:01:58+00:00] INFO: Processing package[mysql-client] action install (mysql::client line 46)
[2012-11-05T22:02:14+00:00] INFO: Processing package[libmysqlclient-dev] action install (mysql::client line 46)
[2012-11-05T22:02:21+00:00] INFO: Processing directory[/var/cache/local/preseeding] action create (mysql::server line 31)
[2012-11-05T22:02:21+00:00] INFO: directory[/var/cache/local/preseeding] created directory /var/cache/local/preseeding
[2012-11-05T22:02:21+00:00] INFO: directory[/var/cache/local/preseeding] owner changed to 0
[2012-11-05T22:02:21+00:00] INFO: directory[/var/cache/local/preseeding] group changed to 0
[2012-11-05T22:02:21+00:00] INFO: directory[/var/cache/local/preseeding] mode changed to 755
[2012-11-05T22:02:21+00:00] INFO: Processing execute[preseed mysql-server] action nothing (mysql::server line 38)
[2012-11-05T22:02:21+00:00] INFO: Processing template[/var/cache/local/preseeding/mysql-server.seed] action create (mysql::server line 43)
[2012-11-05T22:02:21+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] updated content
[2012-11-05T22:02:21+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] owner changed to 0
[2012-11-05T22:02:21+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] group changed to 0
[2012-11-05T22:02:21+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] mode changed to 600
[2012-11-05T22:02:21+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] sending run action to execute[preseed mysql-server] (immediate)
[2012-11-05T22:02:21+00:00] INFO: Processing execute[preseed mysql-server] action run (mysql::server line 38)
[2012-11-05T22:02:22+00:00] INFO: execute[preseed mysql-server] ran successfully
[2012-11-05T22:02:22+00:00] INFO: Processing template[/etc/mysql/debian.cnf] action create (mysql::server line 51)
[2012-11-05T22:02:22+00:00] INFO: template[/etc/mysql/debian.cnf] updated content
[2012-11-05T22:02:22+00:00] INFO: template[/etc/mysql/debian.cnf] owner changed to 0
[2012-11-05T22:02:22+00:00] INFO: template[/etc/mysql/debian.cnf] group changed to 0
[2012-11-05T22:02:22+00:00] INFO: template[/etc/mysql/debian.cnf] mode changed to 600
[2012-11-05T22:02:22+00:00] INFO: Processing package[mysql-server] action install (mysql::server line 78)
[2012-11-05T22:03:05+00:00] INFO: Processing directory[/etc/mysql/conf.d] action create (mysql::server line 85)
[2012-11-05T22:03:05+00:00] INFO: directory[/etc/mysql/conf.d] owner changed to 106
[2012-11-05T22:03:05+00:00] INFO: directory[/etc/mysql/conf.d] group changed to 112
[2012-11-05T22:03:05+00:00] INFO: Processing service[mysql] action nothing (mysql::server line 105)
[2012-11-05T22:03:05+00:00] INFO: Processing template[/etc/mysql/my.cnf] action create (mysql::server line 125)
[2012-11-05T22:03:06+00:00] INFO: template[/etc/mysql/my.cnf] backed up to /var/chef/backup/etc/mysql/my.cnf.chef-20121105220306
[2012-11-05T22:03:06+00:00] INFO: template[/etc/mysql/my.cnf] updated content
[2012-11-05T22:03:06+00:00] INFO: template[/etc/mysql/my.cnf] owner changed to 0
[2012-11-05T22:03:06+00:00] INFO: template[/etc/mysql/my.cnf] group changed to 0
[2012-11-05T22:03:06+00:00] INFO: template[/etc/mysql/my.cnf] mode changed to 644
[2012-11-05T22:03:06+00:00] INFO: template[/etc/mysql/my.cnf] sending restart action to service[mysql] (immediate)
[2012-11-05T22:03:06+00:00] INFO: Processing service[mysql] action restart (mysql::server line 105)
[2012-11-05T22:03:08+00:00] INFO: service[mysql] restarted
[2012-11-05T22:03:08+00:00] INFO: Processing ruby_block[save node data] action create (mysql::server line 146)
[2012-11-05T22:03:09+00:00] INFO: ruby_block[save node data] called
[2012-11-05T22:03:09+00:00] INFO: Processing template[/etc/mysql/grants.sql] action create (mysql::server line 182)
[2012-11-05T22:03:09+00:00] INFO: template[/etc/mysql/grants.sql] updated content
[2012-11-05T22:03:09+00:00] INFO: template[/etc/mysql/grants.sql] owner changed to 0
[2012-11-05T22:03:09+00:00] INFO: template[/etc/mysql/grants.sql] group changed to 0
[2012-11-05T22:03:09+00:00] INFO: template[/etc/mysql/grants.sql] mode changed to 600
[2012-11-05T22:03:09+00:00] INFO: template[/etc/mysql/grants.sql] sending run action to execute[mysql-install-privileges] (immediate)
[2012-11-05T22:03:09+00:00] INFO: Processing execute[mysql-install-privileges] action run (mysql::server line 198)
[2012-11-05T22:03:09+00:00] INFO: execute[mysql-install-privileges] ran successfully
[2012-11-05T22:03:09+00:00] INFO: Processing execute[mysql-install-privileges] action nothing (mysql::server line 198)
[2012-11-05T22:03:09+00:00] INFO: template[/etc/ntp.conf] sending restart action to service[ntp] (delayed)
[2012-11-05T22:03:09+00:00] INFO: Processing service[ntp] action restart (ntp::default line 55)
[2012-11-05T22:03:11+00:00] INFO: service[ntp] restarted
[2012-11-05T22:03:11+00:00] INFO: Chef Run complete in 150.520043374 seconds
[2012-11-05T22:03:11+00:00] INFO: Running report handlers
[2012-11-05T22:03:11+00:00] INFO: Report handlers complete
Mon Nov 5 22:03:11 UTC 2012
****
**** Cleanup:
****
Mon Nov 5 22:03:15 UTC 2012
****
**** Enabling chef client service:
****
warning: chef-client: unable to open supervise/ok: file does not exist
Mon Nov 5 22:03:15 UTC 2012
****
**** Cluster Chef client bootstrap complete
****
Applying aggregations:
my_first_cluster: Loading chef
my_first_cluster: Loading ec2
my_first_cluster: Reconciling DSL and provider information
Loaded information for 3 computer(s) in cluster my_first_cluster
Finished! Current state:
+-----------------------------+-------+---------+----------+------------+------+------------+--------------+---------------+------------+
| Name | Chef? | State | Flavor | AZ | Env | MachineID | Public IP | Private IP | Created On |
+-----------------------------+-------+---------+----------+------------+------+------------+--------------+---------------+------------+
| my_first_cluster-database-0 | yes | running | m1.large | us-west-1a | dev | i-28850471 | 50.18.71.186 | 10.174.19.139 | 2012-11-05 |
+-----------------------------+-------+---------+----------+------------+------+------------+--------------+---------------+------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment