Pin berkshelf to < 7.2.0 to work around issues with Chef/Cinc 15

This works around a problem that was introducted in berkshelf-7.2.0 for Ruby 3.0
support that now breaks berks with the following error:

  ArgumentError wrong number of arguments (given 3, expected 1..2)

This should be removed after we remove support for Chef/Cinc 15.

Signed-off-by: Lance Albertson <lance@osuosl.org>
Change-Id: Idfc0afd9ddbd9085f5b39267a50eb949930a0c70
This commit is contained in:
Lance Albertson 2021-03-04 15:27:08 -08:00
parent 8b56b0110f
commit d83a892136
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,9 @@
become: yes
when: openstack_chef_client_type == 'cinc'
- name: Install berkshelf
shell: /opt/chef/embedded/bin/gem install -N berkshelf
# TODO(ramereth): > 7.1.0 doesn't work with ruby 2.6 which is used on Chef/Cinc 15
# Remove this once we remove testing for Chef/Cinc 15
shell: /opt/chef/embedded/bin/gem install -N berkshelf -v 7.1.0
become: yes
- name: Install cookstyle
shell: /opt/chef/embedded/bin/gem install -N cookstyle