- From: Bryan McLellan <
>
- To: "
" <
>
- Subject: [chef] Re: Re: CHEF-4579: should package action install also upgrade?
- Date: Wed, 2 Oct 2013 15:59:27 -0400
On Wed, Oct 2, 2013 at 3:33 PM, Brian Hatfield
<
>
wrote:
>
No. I strongly object to this.
>
>
action :upgrade exists and is sufficient.
>
>
If action :install performed upgrades, it would absolutely destroy things,
>
for example running MongoDB using the 10gen repos and having a 2.2 database
>
upgrade to 2.4 behind your back, etc.
The question is a bit higher level than that surrounding the entire
semantics of package, not simply should install also upgrade.
You could have attributes to control it.
# installs but doesn't upgrade
package "mongodb" do
action :install
upgrade false
end
# installs and upgrades
package "mongodb" do
action :install
end
# only upgrade, won't install
package "mongodb" do
action :upgrade
end
Bryan
Archive powered by MHonArc 2.6.16.