Created
October 15, 2013 15:03
-
-
Save jtimberman/6993000 to your computer and use it in GitHub Desktop.
the recipe as pasted into chef-shell or run with chef-apply to show the sequence of convergence
This file contains 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
[2013-10-15T09:02:20-06:00] WARN: Happens before chef-sugar gem install | |
Recipe: (chef-apply cookbook)::(chef-apply recipe) | |
* chef_gem[chef-sugar] action install | |
- install version 1.0.0 of package chef-sugar | |
[2013-10-15T09:02:21-06:00] WARN: Happens after chef-sugar gem install | |
* package[sudo] action install | |
- install version 1.8.5p2-1+nmu1 of package sudo | |
* chef_gem[chef-sugar] action install (up to date) | |
* log[Happens during convergence] action write | |
* ruby_block[happens during convergence] action run[2013-10-15T09:02:22-06:00] WARN: nil | |
- execute the ruby block happens during convergence |
This file contains 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
chef > recipe_mode | |
chef:recipe > package "sudo" | |
=> <package[sudo] @name: "sudo" @noop: nil @before: nil @params: {} @provider: nil @allowed_actions: [:nothing, :install, :upgrade, :remove, :purge, :reconfig] @action: :install @updated: false @updated_by_last_action: false @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: "(irb#1):1:in `irb_binding'" @elapsed_time: 0 @candidate_version: nil @options: nil @package_name: "sudo" @resource_name: :package @response_file: nil @source: nil @version: nil @cookbook_name: nil @recipe_name: nil> | |
chef:recipe > | |
chef:recipe > Chef::Log.warn("Happens before chef-sugar gem install") | |
[2013-10-15T09:00:10-06:00] WARN: Happens before chef-sugar gem install | |
=> [#<Logger:0x000000028e42c8 @progname=nil, @level=2, @default_formatter=#<Logger::Formatter:0x000000028e4228 @datetime_format=nil>, @formatter=#<Mixlib::Log::Formatter:0x000000028e3f80 @datetime_format=nil>, @logdev=#<Logger::LogDevice:0x000000028e4188 @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:<STDERR>>, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x000000028e4160 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x000000028e40c0>>>>] | |
chef:recipe > chef_gem "chef-sugar" | |
=> <chef_gem[chef-sugar] @name: "chef-sugar" @noop: nil @before: nil @params: {} @provider: Chef::Provider::Package::Rubygems @allowed_actions: [:nothing, :install, :upgrade, :remove, :purge, :reconfig] @action: :install @updated: true @updated_by_last_action: true @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: "(irb#1):4:in `irb_binding'" @elapsed_time: 5.345670705 @candidate_version: nil @options: nil @package_name: "chef-sugar" @resource_name: :chef_gem @response_file: nil @source: nil @version: "1.0.0" @cookbook_name: nil @recipe_name: nil> | |
chef:recipe > Chef::Log.warn("Happens after chef-sugar gem install") | |
[2013-10-15T09:00:15-06:00] WARN: Happens after chef-sugar gem install | |
=> [#<Logger:0x000000028e42c8 @progname=nil, @level=2, @default_formatter=#<Logger::Formatter:0x000000028e4228 @datetime_format=nil>, @formatter=#<Mixlib::Log::Formatter:0x000000028e3f80 @datetime_format=nil>, @logdev=#<Logger::LogDevice:0x000000028e4188 @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:<STDERR>>, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x000000028e4160 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x000000028e40c0>>>>] | |
chef:recipe > | |
chef:recipe > require "chef/sugar" | |
=> true | |
chef:recipe > | |
chef:recipe > log "Happens during convergence" | |
=> <log[Happens during convergence] @name: "Happens during convergence" @noop: nil @before: nil @params: {} @provider: nil @allowed_actions: [:nothing] @action: :write @updated: false @updated_by_last_action: false @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: "(irb#1):9:in `irb_binding'" @elapsed_time: 0 @resource_name: :log @level: :info @message: "Happens during convergence" @cookbook_name: nil @recipe_name: nil> | |
chef:recipe > | |
chef:recipe > ruby_block "happens during convergence" do | |
chef:recipe > block do | |
chef:recipe > | |
Display all 525 possibilities? (y or n) | |
chef:recipe > Chef::Log.warn(Chef::Sugar::PlatformFamily.windows?(node)) | |
chef:recipe ?> end | |
chef:recipe ?> end | |
=> <ruby_block[happens during convergence] @name: "happens during convergence" @noop: nil @before: nil @params: {} @provider: nil @allowed_actions: [:nothing, :create, :run] @action: "run" @updated: false @updated_by_last_action: false @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: "(irb#1):11:in `irb_binding'" @elapsed_time: 0 @resource_name: :ruby_block @block_name: "happens during convergence" @cookbook_name: nil @recipe_name: nil @block: #<Proc:0x00000006702be0@(irb#1):12>> | |
chef:recipe > run_chef | |
[2013-10-15T09:00:25-06:00] INFO: Processing package[sudo] action install ((irb#1) line 1) | |
[2013-10-15T09:00:25-06:00] DEBUG: Platform debian version 7.2 found | |
[2013-10-15T09:00:25-06:00] DEBUG: Platform debian version 7.2 found | |
[2013-10-15T09:00:25-06:00] DEBUG: package[sudo] checking package status for sudo | |
sudo: | |
Installed: (none) | |
Candidate: 1.8.5p2-1+nmu1 | |
Version table: | |
1.8.5p2-1+nmu1 0 | |
500 http://ftp.us.debian.org/debian/ wheezy/main amd64 Packages | |
[2013-10-15T09:00:25-06:00] DEBUG: package[sudo] current version is nil | |
[2013-10-15T09:00:25-06:00] DEBUG: package[sudo] candidate version is 1.8.5p2-1+nmu1 | |
[2013-10-15T09:00:25-06:00] DEBUG: Executing apt-get -q -y install sudo=1.8.5p2-1+nmu1 | |
[2013-10-15T09:00:27-06:00] DEBUG: ---- Begin output of apt-get -q -y install sudo=1.8.5p2-1+nmu1 ---- | |
[2013-10-15T09:00:27-06:00] DEBUG: STDOUT: Reading package lists... | |
Building dependency tree... | |
Reading state information... | |
The following NEW packages will be installed: | |
sudo | |
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
Need to get 842 kB of archives. | |
After this operation, 1,882 kB of additional disk space will be used. | |
Get:1 http://ftp.us.debian.org/debian/ wheezy/main sudo amd64 1.8.5p2-1+nmu1 [842 kB] | |
Fetched 842 kB in 0s (972 kB/s) | |
Selecting previously unselected package sudo. | |
(Reading database ... 35560 files and directories currently installed.) | |
Unpacking sudo (from .../sudo_1.8.5p2-1+nmu1_amd64.deb) ... | |
Processing triggers for man-db ... | |
Setting up sudo (1.8.5p2-1+nmu1) ... | |
[2013-10-15T09:00:27-06:00] DEBUG: STDERR: | |
[2013-10-15T09:00:27-06:00] DEBUG: ---- End output of apt-get -q -y install sudo=1.8.5p2-1+nmu1 ---- | |
[2013-10-15T09:00:27-06:00] DEBUG: Ran apt-get -q -y install sudo=1.8.5p2-1+nmu1 returned 0 | |
[2013-10-15T09:00:27-06:00] INFO: Processing chef_gem[chef-sugar] action install ((irb#1) line 4) | |
[2013-10-15T09:00:27-06:00] DEBUG: chef_gem[chef-sugar] detected omnibus installation in /opt/chef/embedded/bin | |
[2013-10-15T09:00:27-06:00] DEBUG: chef_gem[chef-sugar] using gem from running ruby environment | |
[2013-10-15T09:00:27-06:00] DEBUG: chef_gem[chef-sugar] found installed gem chef-sugar version 1.0.0 matching chef-sugar (= 1.0.0) | |
[2013-10-15T09:00:27-06:00] DEBUG: chef_gem[chef-sugar] is already installed - nothing to do | |
[2013-10-15T09:00:27-06:00] INFO: Processing log[Happens during convergence] action write ((irb#1) line 9) | |
[2013-10-15T09:00:27-06:00] DEBUG: Platform debian version 7.2 found | |
[2013-10-15T09:00:27-06:00] DEBUG: Platform debian version 7.2 found | |
[2013-10-15T09:00:27-06:00] INFO: Happens during convergence | |
[2013-10-15T09:00:27-06:00] INFO: Processing ruby_block[happens during convergence] action run ((irb#1) line 11) | |
[2013-10-15T09:00:27-06:00] DEBUG: Platform debian version 7.2 found | |
[2013-10-15T09:00:27-06:00] DEBUG: Platform debian version 7.2 found | |
[2013-10-15T09:00:27-06:00] WARN: nil | |
[2013-10-15T09:00:27-06:00] INFO: ruby_block[happens during convergence] called | |
=> true |
This file contains 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
package "sudo" | |
Chef::Log.warn("Happens before chef-sugar gem install") | |
chef_gem "chef-sugar" | |
Chef::Log.warn("Happens after chef-sugar gem install") | |
require "chef/sugar" | |
log "Happens during convergence" | |
ruby_block "happens during convergence" do | |
block do | |
Chef::Log.warn(Chef::Sugar::PlatformFamily.windows?(node)) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment