Closed MatrixCrawler closed 5 years ago
a workaround for us is to add the following to our .kitchen.yml
verifier:
additional_install_command: >
sudo yum install -y ruby24 &&
sudo update-alternatives --set ruby /usr/bin/ruby2.4 &&
sudo gem update --system --no-document &&
sudo gem install -N bundler
Bundler version is not locked in lib/kitchen/verifier/serverspec.rb file.
Same error on Centos 7 btw.
This works on CentOS:
verifier:
name: serverspec
sudo_command: 'sudo -i -E -H'
additional_install_command: >
sudo yum install -y centos-release-scl &&
sudo yum install -y rh-ruby23 &&
sudo bash -c "echo 'source scl_source enable rh-ruby23' > /etc/profile.d/ruby23.sh" &&
sudo yum install -y rh-ruby23-rubygem-bundler &&
source scl_source enable rh-ruby23`
(The same issue also affects kitchen-ansible with Busser.)
I think the possible solutions are:
On Amazon Linux 1 we have the problem, that the new bundler 2.0.0 requires ruby 2.3 but with the default installation is ruby 2.0.0. This leads to an error in the verifier installation