- From: Jens Skott <
>
- To: "
" <
>
- Subject: [chef] Package provider
- Date: Mon, 20 May 2013 08:50:28 +0200
Hello, we run chef11 and an internal repo for RPM:s (satellite).
Since we do releases to stage and test every few hours every day of the week we need the nodes to install new packages often.
When we found out the RPMS didnt get installed we did some digging.
Got this out of shef:
chef > recipe_mode
chef:recipe > package "xmltolk"
=> <package[xmltolk] @name: "xmltolk" @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: "xmltolk" @resource_name: :package @response_file: nil @source: nil @version: nil @cookbook_name: nil @recipe_name: nil>
chef:recipe > chef_run
=> nil
chef:recipe > run_chef
[2013-05-17T14:17:01+02:00] INFO: Processing package[xmltolk] action install ((irb#1) line 1)
[2013-05-17T14:17:06+02:00] DEBUG: package[xmltolk] checking yum info for xmltolk
[2013-05-17T14:17:06+02:00] DEBUG: package[xmltolk] installed version: STAGE-3 candidate version: STAGE-4
[2013-05-17T14:17:06+02:00] DEBUG: package[xmltolk] is already installed - nothing to do
the recipe itself has:
package "xmltolk" do
action [:install]
end
If we do an upgrade it works fine, but we want to recipe just to contain
package "xmltolk"
Any suggestions
Jens Skott
Tel: +46-8-5142 4396
Schibsted Centralen IT
- [chef] Package provider, Jens Skott, 05/19/2013
Archive powered by MHonArc 2.6.16.