disney / couchbase

Chef cookbook to install and configure Couchbase Server
24 stars 59 forks source link

Recipe behaves differently depending on versions of chef-client (Breaking Change) #54

Closed unhuman closed 9 years ago

unhuman commented 9 years ago

See: https://github.com/chef/chef/issues/3292

The code uses the default behavior :install, so chef-client 12.0.3 will upgrade Couchbase as a new version attribute is specified. If you upgrade to chef-client 12.3.0, this behavior won't work anymore (testing should be done for intermediary versions).

If using a newer version of chef-client, the desirable action is :upgrade (recipes/server.rb)

In chef-client 12.0.3:

In chef-client 12.3.0:

unhuman commented 9 years ago

quick test indicates that 12.4 has restored :install ability to perform upgrades. 12.5.1 also functions as expected.