Skip to content

Instantly share code, notes, and snippets.

@justinkinney
Created December 23, 2015 17:24
Show Gist options
  • Save justinkinney/9aea9236bd6f9826e7dd to your computer and use it in GitHub Desktop.
Save justinkinney/9aea9236bd6f9826e7dd to your computer and use it in GitHub Desktop.
chef > recipe_mode
chef:recipe > yum_package 'glibc' do
chef:recipe > arch 'i686'
chef:recipe ?> action :install
chef:recipe ?> end
[2015-12-23T09:22:44-08:00] WARN: Cloning resource attributes for yum_package[glibc] from prior resource (CHEF-3694)
[2015-12-23T09:22:44-08:00] WARN: Previous yum_package[glibc]: /var/chef/cache/cookbooks/x/recipes/install_packages.rb:12:in `from_file'
[2015-12-23T09:22:44-08:00] WARN: Current yum_package[glibc]: (irb#1):1:in `irb_binding'
=> <yum_package[glibc] @name: "glibc" @noop: nil @before: nil @params: {} @provider: Chef::Provider::Package::Yum @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'" @guard_interpreter: :default @elapsed_time: 0 @sensitive: false @candidate_version: nil @options: nil @package_name: "glibc" @resource_name: :yum_package @response_file: nil @response_file_variables: {} @source: nil @version: nil @timeout: 900 @flush_cache: {:before=>false, :after=>false} @allow_downgrade: false @cookbook_name: nil @recipe_name: nil @arch: "i686">
chef:recipe > resources('yum_package[glibc]').run_action :install
<yum_package[glibc] @name: "glibc" @noop: nil @before: nil @params: {} @provider: Chef::Provider::Package::Yum @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'" @guard_interpreter: :default @elapsed_time: 0 @sensitive: false @candidate_version: nil @options: nil @package_name: "glibc" @resource_name: :yum_package @response_file: nil @response_file_variables: {} @source: nil @version: nil @timeout: 900 @flush_cache: {:before=>false, :after=>false} @allow_downgrade: false @cookbook_name: nil @recipe_name: nil @arch: "i686">
[2015-12-23T09:22:46-08:00] INFO: Processing yum_package[glibc] action install ((irb#1) line 1)
[2015-12-23T09:22:46-08:00] DEBUG: yum_package[glibc] checking yum info for glibc.i686
[2015-12-23T09:22:47-08:00] DEBUG: yum_package[glibc] installed version: (none) candidate version: 2.12-1.166.el6_7.3
[2015-12-23T09:22:47-08:00] INFO: yum_package[glibc] installing glibc-2.12-1.166.el6_7.3.i686 from updates repository
[2015-12-23T09:22:47-08:00] DEBUG: Executing yum -d0 -e0 -y install glibc-2.12-1.166.el6_7.3.i686
[2015-12-23T09:22:51-08:00] DEBUG: ---- Begin output of yum -d0 -e0 -y install glibc-2.12-1.166.el6_7.3.i686 ----
[2015-12-23T09:22:51-08:00] DEBUG: STDOUT: /sbin/ldconfig: /usr/lib64/libwbclient.so.0 is not a symbolic link
[2015-12-23T09:22:51-08:00] DEBUG: STDERR:
[2015-12-23T09:22:51-08:00] DEBUG: ---- End output of yum -d0 -e0 -y install glibc-2.12-1.166.el6_7.3.i686 ----
[2015-12-23T09:22:51-08:00] DEBUG: Ran yum -d0 -e0 -y install glibc-2.12-1.166.el6_7.3.i686 returned 0
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment