Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/test-upgrade-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
exclude:
- version: 2021.7.9
version_to_upgrade: 2021.7.9
- version: 2021.7.9
version_to_upgrade: 2025.6.0
- version: 2023.8.6
version_to_upgrade: 2021.7.9
- version: 2023.8.6
Expand Down
18 changes: 4 additions & 14 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ group :development do
gem "rubocop-factory_bot", '~> 2.27.1', require: false
gem "rubocop-capybara", '~> 2.22.1', require: false
gem "rb-readline", '= 0.5.5', require: false, platforms: [:mswin, :mingw, :x64_mingw]
#gem "bolt", '>= 4.0.0', require: false
gem "bolt", '>= 4.0.0', require: false
gem "github_changelog_generator", '1.16.4', require: false
gem "octokit", '4.21.0', require: false
gem "orchestrator_client", '< 0.7.1', require: false
Expand All @@ -55,24 +55,14 @@ end
puppet_version = ENV['PUPPET_GEM_VERSION']
facter_version = ENV['FACTER_GEM_VERSION']
hiera_version = ENV['HIERA_GEM_VERSION']
bolt_version = ENV.fetch('BOLT_GEM_VERSION', nil)

gems = {}

# If PUPPET_FORGE_TOKEN is set then use authenticated source for both puppet and facter, since facter is a transitive dependency of puppet
# Otherwise, do as before and use location_for to fetch gems from the default source
if !ENV['PUPPET_FORGE_TOKEN'].to_s.empty?
gems['bolt'] = [bolt_version || '~> 5.0', { require: false, source: 'https://rubygems-puppetcore.puppet.com' }]
gems['puppet'] = [puppet_version || '~> 8.11', { require: false, source: 'https://rubygems-puppetcore.puppet.com' }]
gems['facter'] = [facter_version || '~> 4.0', { require: false, source: 'https://rubygems-puppetcore.puppet.com' }]
else
gems['bolt'] = location_for(bolt_version)
gems['puppet'] = location_for(puppet_version)
gems['facter'] = location_for(facter_version) if facter_version
end
gems['puppet'] = location_for(puppet_version)

# If hiera version have been specified via the environment
# If facter or hiera versions have been specified via the environment
# variables
gems['facter'] = location_for(facter_version) if facter_version
gems['hiera'] = location_for(hiera_version) if hiera_version

gems.each do |gem_name, gem_params|
Expand Down
2 changes: 1 addition & 1 deletion plans/subplans/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@
run_task('peadm::puppet_runonce', $target)
}

wait([$bg_db_run])
wait([$bg_db_run], 1200, _catch_errors => true)

# The puppetserver might be in the middle of a restart after the Puppet run,
# so we check the status by calling the api and ensuring the puppetserver is
Expand Down
Loading