As the version numbers are not pinned when installing gem files, when using older versions of the sumologic-collector-chef-cookbook it will try and install the latest gems.
chef_gem 'chef-vault' do
compile_time true if respond_to?(:compile_time)
end
These should be pinned with the current version of the gem to ensure that when running the cookbook on older environments it does not try and force a ruby update:
chef_gem 'chef-vault' do
compile_time true if respond_to?(:compile_time)
version '2.9.1'
end
Error:
chef-vault requires Ruby version >= 2.2.0.
---- End output of C:/opscode/chef/embedded/bin/gem install chef-vault -q --no-rdoc --no-ri -v "3.0.1" ----
As the version numbers are not pinned when installing gem files, when using older versions of the
sumologic-collector-chef-cookbook
it will try and install the latest gems.These should be pinned with the current version of the gem to ensure that when running the cookbook on older environments it does not try and force a ruby update:
Error: