forked from puppetlabs-toy-chest/puppet-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request puppetlabs-toy-chest#736 from donoghuc/PE-36966
(PE-36966) Use puppet-strings 3.x sereies for LTS bolt-server
- Loading branch information
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
component 'rubygem-puppet-strings' do |pkg, settings, platform| | ||
pkg.version '4.1.0' | ||
pkg.md5sum 'd8259d8a9144757f4e78f118b59e2681' | ||
# 2021.7.x LTS has a jruby that does not work with puppet-strings | ||
# version 4.y. The 4 series requires ruby >= 2.7 | ||
# Default to 4.x sereies but allow it to be configuratble by project. | ||
version = settings[:rubygem_puppet_strings_version] || '4.1.0' | ||
pkg.version(version) | ||
|
||
case version | ||
when '3.0.1' | ||
pkg.md5sum '7c9a8936509a0434c39975a75197472c' | ||
when '4.1.0' | ||
pkg.md5sum 'd8259d8a9144757f4e78f118b59e2681' | ||
else | ||
raise "Invalid version #{version} for rubygem-puppet-strings; Cannot continue." | ||
end | ||
instance_eval File.read('configs/components/_base-rubygem.rb') | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters