Created
February 12, 2013 22:19
-
-
Save behemphi/4773975 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Note that the recipe base is in the runlist first. | |
| Note that after loading the cookbooks (where base should produce many lines of code for creating ssh users and such) it skips | |
| not to the first command of the the kitchen::knife recipe, but third. | |
| [2013-02-12T21:51:18+00:00] INFO: *** Chef 10.16.2 *** | |
| [2013-02-12T21:51:22+00:00] INFO: Run List is [recipe[base], recipe[kitchen]] | |
| [2013-02-12T21:51:22+00:00] INFO: Run List expands to [base, kitchen] | |
| [2013-02-12T21:51:22+00:00] INFO: Starting Chef Run for openkitchen | |
| [2013-02-12T21:51:22+00:00] INFO: Running start handlers | |
| [2013-02-12T21:51:22+00:00] INFO: Start handlers complete. | |
| [2013-02-12T21:51:23+00:00] INFO: Loading cookbooks [base, kitchen, python] | |
| [2013-02-12T21:51:41+00:00] INFO: Processing chef_gem[knife-rackspace] action install (kitchen::knife line 24) | |
| [2013-02-12T21:51:41+00:00] INFO: Processing execute[apt_get_update] action run (base::default line 15) | |
| knife.rb cookbook code | |
| # | |
| # Cookbook Name:: kitchen | |
| # Recipe:: knife | |
| # | |
| # Copyright 2011, Feedmagnet Corp. | |
| # All rights reserved - Do Not Redistribute | |
| # | |
| # Purpose: Install knife to the the kitchen for use by remote login. In particular, | |
| # from a hand held device such as a phone. | |
| # Issue documented with Opscode here: http://tickets.opscode.com/browse/CHEF-3573 | |
| # patch code can be found here https://gist.github.com/3984352 | |
| template "/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/ssh.rb" do | |
| source "ssh_rb" | |
| owner "root" | |
| group "root" | |
| mode "0644" | |
| end | |
| # Install knife plugins | |
| gems = %w{ knife-rackspace } | |
| gems.each do |gem| | |
| chef_gem gem do | |
| action :install | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment