Hi,
Is it a designed feature that chef-client doesn’t automatically upgrade yum
package even the repository has a newer version of the RPMs? Or I miss
something here?
thanks for your info.
Xianfeng
Hi,
Is it a designed feature that chef-client doesn’t automatically upgrade yum
package even the repository has a newer version of the RPMs? Or I miss
something here?
thanks for your info.
Xianfeng
On Tuesday, March 26, 2013 at 12:04 PM, xyuan@mspot.com wrote:
Hi,
Is it a designed feature that chef-client doesn't automatically upgrade yum
package even the repository has a newer version of the RPMs? Or I miss
something here?thanks for your info.
Xianfeng
What does your resource look like? If the action is :install, then it should not upgrade, unless you have a version parameter specifying a newer version. If you always want the newest version, you should use action :upgrade
See also: package Resource
HTH,
--
Daniel DeLeo
On Mar 26, 2013, at 12:04 PM, xyuan@mspot.com wrote:
Hi,
Is it a designed feature that chef-client doesn't automatically upgrade yum
package even the repository has a newer version of the RPMs? Or I miss
something here?thanks for your info.
The default action is :install, which doesn't upgrade. Try this:
package "name" do
action :upgrade
end
--Noah
I believe it depends on which action you called in the resource. If you called it with the action :upgrade and there is a newer version I'm fairly certain it does upgrade. This is generally not considered a safe thing to do as upgrades can break.
http://docs.opscode.com/resource_yum.html
Bobby Castleberry
Sr. Systems Engineer
Turner Broadcasting AMPT
404-878-1708 Office
404-661-8084 Cell
On Mar 26, 2013, at 3:04 PM, xyuan@mspot.com
wrote:
Hi,
Is it a designed feature that chef-client doesn't automatically upgrade yum
package even the repository has a newer version of the RPMs? Or I miss
something here?thanks for your info.
Xianfeng
the packages will be upgraded only if the action is :upgrade, default is
:install, which only installs if the package is absent, use
yum_package "foo" {action :upgrade}
to upgrade them
On Tue, Mar 26, 2013 at 12:04 PM, xyuan@mspot.com wrote:
Hi,
Is it a designed feature that chef-client doesn't automatically upgrade yum
package even the repository has a newer version of the RPMs? Or I miss
something here?thanks for your info.
Xianfeng