chef-gluster icon indicating copy to clipboard operation
chef-gluster copied to clipboard

Support to install specific patch version

Open vchung-nz opened this issue 7 years ago • 3 comments

Is there any interest in adding an optional attribute to "pin" the client / server to a specific version? Something like this for client_install.rb

include_recipe 'gluster::repository' unless node['gluster']['repo'] == 'private'

# Install the client package
package node['gluster']['client']['package'] do
  version node['gluster']['client']['version']
end

vchung-nz avatar Mar 15 '17 01:03 vchung-nz

Right now the version is already pinned to a minor version, but does not go so far as to pin patch versions

You can use node['gluster']['version'], but you would also need to modify the repo recipe since it assumes the latest patch version as well as server_install

shortdudey123 avatar Mar 15 '17 03:03 shortdudey123

Yes, but node['gluster']['version'] is only apply if using public repo. There is no control within the package resource if using a private repo, hence the suggested edit. But I am not sure how often people run into that problem :smile:

vchung-nz avatar Mar 15 '17 04:03 vchung-nz

Correct

shortdudey123 avatar Mar 15 '17 04:03 shortdudey123