Skip to content

Commit b1a323e

Browse files
committed
(maint) Pin sematic-puppet for component acceptance
The bolt runners in the component acceptance tests have ruby interpreters < 2.7. There is a new sematic puppet release that requires ruby 2.7 and the gem install commmand is not smart enough to pull in dependencies based on ruby version requirements. This commit updates the test runners to pre-install a suitable sematic puppet version before installing the bolt gem. !no-release-note
1 parent b0ffcc0 commit b1a323e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

acceptance/setup/common/pre-suite/010_install_ruby.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
on(bolt, powershell('gem install puppet-strings -v 2.9.0'))
2626
# net-ssh 7.x no longer supports ruby 2.5
2727
on(bolt, powershell('gem install net-ssh -v 6.1.0'))
28+
# semantic puppet no longer supports ruby < 2.7
29+
on(bolt, powershell('gem install semantic_puppet -v 1.0.4'))
2830
when /debian|ubuntu/
2931
# install system ruby packages
3032
install_package(bolt, 'ruby')
@@ -44,6 +46,8 @@
4446
install_package(bolt, 'libffi-devel')
4547
install_package(bolt, 'redhat-rpm-config')
4648
on(bolt, "dnf group install -y 'C Development Tools and Libraries'")
49+
# semantic puppet no longer supports ruby < 2.7
50+
on(bolt, 'gem install semantic_puppet -v 1.0.4')
4751
install_package(bolt, 'rubygem-json')
4852
install_package(bolt, 'rubygem-bigdecimal')
4953
install_package(bolt, 'rubygem-io-console')
@@ -52,6 +56,8 @@
5256
on(bolt, 'gem install winrm-fs -v 1.3.3 --no-document')
5357
# System ruby for osx12 is 2.6, which can only manage puppet-strings 2.9.0
5458
on(bolt, 'gem install puppet-strings -v 2.9.0 --no-document')
59+
# semantic puppet no longer supports ruby < 2.7
60+
on(bolt, 'gem install semantic_puppet -v 1.0.4')
5561
else
5662
fail_test("#{bolt['platform']} not currently a supported bolt controller")
5763
end

0 commit comments

Comments
 (0)