Skip to content

Instantly share code, notes, and snippets.

@steelcowboy
Created May 19, 2020 20:12
Show Gist options
  • Save steelcowboy/d411bc080af9b46c11661c96a58e8753 to your computer and use it in GitHub Desktop.
Save steelcowboy/d411bc080af9b46c11661c96a58e8753 to your computer and use it in GitHub Desktop.
CPE Chrome Debug Data

With duplicate resource_name

Recipe: cpe_chrome::default
  * cpe_chrome[Configure Google Chrome] action config[2020-05-19T12:48:19-07:00] INFO: Processing cpe_chrome[Configure Google Chrome] action config (cpe_chrome::default line 18)
[2020-05-19T12:48:21-07:00] DEBUG: Fuzzy matches: []
 (up to date)

The diff

 # Cookbook Name:: cpe_chrome
 # Resources:: cpe_chrome_win
-resource_name :cpe_chrome
+
+resource_name :cpe_chrome_win
 provides :cpe_chrome, :os => 'windows'
 default_action :config

Running Chef again

Recipe: cpe_chrome::default
  * cpe_chrome[Configure Google Chrome] action config[2020-05-19T12:55:59-07:00] INFO: Processing cpe_chrome[Configure Google Chrome] action config (cpe_chrome::default line 18)

    * yum_repository[google-chrome] action create[2020-05-19T12:55:59-07:00] INFO: Processing yum_repository[google-chrome] action create (/var/chef/cache/cookbooks/cpe_chrome/resources/cpe_chrome.rb line 32)

      * template[/etc/yum.repos.d/google-chrome.repo] action create[2020-05-19T12:55:59-07:00] INFO: Processing template[/etc/yum.repos.d/google-chrome.repo] action create (/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.0/lib/chef/provider/yum_repository.rb line 36)
 (up to date)
      * execute[yum clean metadata google-chrome] action nothing[2020-05-19T12:55:59-07:00] INFO: Processing execute[yum clean metadata google-chrome] action nothing (/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.0/lib/chef/provider/yum_repository.rb line 53)
 (skipped due to action :nothing)
[2020-05-19T12:55:59-07:00] DEBUG: Skipping execute[yum clean metadata google-chrome] due to action :nothing
      * execute[yum-makecache-google-chrome] action nothing[2020-05-19T12:55:59-07:00] INFO: Processing execute[yum-makecache-google-chrome] action nothing (/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.0/lib/chef/provider/yum_repository.rb line 59)
 (skipped due to action :nothing)
[2020-05-19T12:55:59-07:00] DEBUG: Skipping execute[yum-makecache-google-chrome] due to action :nothing
      * ruby_block[package-cache-reload-google-chrome] action nothing[2020-05-19T12:55:59-07:00] INFO: Processing ruby_block[package-cache-reload-google-chrome] action nothing (/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.0/lib/chef/provider/yum_repository.rb line 66)
 (skipped due to action :nothing)
[2020-05-19T12:55:59-07:00] DEBUG: Skipping ruby_block[package-cache-reload-google-chrome] due to action :nothing
       (up to date)
    * apt_repository[google-chrome] action add[2020-05-19T12:55:59-07:00] INFO: Processing apt_repository[google-chrome] action add (/var/chef/cache/cookbooks/cpe_chrome/resources/cpe_chrome.rb line 42)
 (skipped due to only_if)
[2020-05-19T12:55:59-07:00] DEBUG: Skipping apt_repository[google-chrome] due to only_if ruby block
    * dnf_package[google-chrome-stable] action upgrade[2020-05-19T12:55:59-07:00] INFO: Processing dnf_package[google-chrome-stable] action upgrade (/var/chef/cache/cookbooks/cpe_chrome/resources/cpe_chrome.rb line 57)
[2020-05-19T12:55:59-07:00] DEBUG: sending '{"action":"whatinstalled","provides":"google-chrome-stable"}' to python helper
[2020-05-19T12:56:00-07:00] DEBUG: got 'google-chrome-stable 0:83.0.4103.61-1 x86_64' from python helper
[2020-05-19T12:56:00-07:00] DEBUG: parsed google-chrome-stable-0:83.0.4103.61-1.x86_64 from python helper
[2020-05-19T12:56:00-07:00] DEBUG: sending '{"action":"whatavailable","provides":"google-chrome-stable"}' to python helper
[2020-05-19T12:56:00-07:00] DEBUG: got 'google-chrome-stable 0:83.0.4103.61-1 x86_64' from python helper
[2020-05-19T12:56:00-07:00] DEBUG: parsed google-chrome-stable-0:83.0.4103.61-1.x86_64 from python helper
[2020-05-19T12:56:00-07:00] DEBUG: sending '{"action":"versioncompare","versions":["0:83.0.4103.61-1","0:83.0.4103.61-1"]}' to python helper
[2020-05-19T12:56:00-07:00] DEBUG: got '0' from python helper
 (up to date)
    * directory[/etc/opt] action create[2020-05-19T12:56:00-07:00] INFO: Processing directory[/etc/opt] action create (/var/chef/cache/cookbooks/cpe_chrome/resources/cpe_chrome.rb line 93)
 (up to date)
    * directory[/etc/opt/chrome] action create[2020-05-19T12:56:00-07:00] INFO: Processing directory[/etc/opt/chrome] action create (/var/chef/cache/cookbooks/cpe_chrome/resources/cpe_chrome.rb line 93)
 (up to date)
    * directory[/etc/opt/chrome/policies] action create[2020-05-19T12:56:00-07:00] INFO: Processing directory[/etc/opt/chrome/policies] action create (/var/chef/cache/cookbooks/cpe_chrome/resources/cpe_chrome.rb line 93)
 (up to date)
    * directory[/etc/opt/chrome/policies/managed] action create[2020-05-19T12:56:00-07:00] INFO: Processing directory[/etc/opt/chrome/policies/managed] action create (/var/chef/cache/cookbooks/cpe_chrome/resources/cpe_chrome.rb line 93)
 (up to date)
    * directory[/etc/opt/chrome/policies/recommended] action create[2020-05-19T12:56:00-07:00] INFO: Processing directory[/etc/opt/chrome/policies/recommended] action create (/var/chef/cache/cookbooks/cpe_chrome/resources/cpe_chrome.rb line 93)
 (up to date)
    * bash[migrate chromium directory] action run[2020-05-19T12:56:00-07:00] INFO: Processing bash[migrate chromium directory] acti
on run (/var/chef/cache/cookbooks/cpe_chrome/resources/cpe_chrome.rb line 209)
 (skipped due to only_if)
[2020-05-19T12:56:00-07:00] DEBUG: Skipping bash[migrate chromium directory] due to only_if ruby block
    * link[/etc/chromium] action create[2020-05-19T12:56:00-07:00] INFO: Processing link[/etc/chromium] action create (/var/chef/cache/cookbooks/cpe_chrome/resources/cpe_chrome.rb line 100)
 (up to date)
    * file[/etc/opt/chrome/policies/managed/test_policy.json] action create[2020-05-19T12:56:00-07:00] INFO: Processing file[/etc/opt/chrome/policies/managed/test_policy.json] action create (/var/chef/cache/cookbooks/cpe_chrome/resources/cpe_chrome.rb line 114)
 (up to date)
    * file[/etc/opt/chrome/policies/recommended/test_policy.json] action create[2020-05-19T12:56:00-07:00] INFO: Processing file[/etc/opt/chrome/policies/recommended/test_policy.json] action create (/var/chef/cache/cookbooks/cpe_chrome/resources/cpe_chrome.rb line 114)
 (up to date)
     (up to date)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment