Skip to content

Commit bdc0cd4

Browse files
(PE-42079) Add timeout for puppet run on db targets (#614)
One of the 'CI/ Acceptance' tests is failing on CentOS-9 due to a known issue so merging past.
1 parent 94cf2ac commit bdc0cd4

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

.github/workflows/test-upgrade-matrix.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
exclude:
4545
- version: 2021.7.9
4646
version_to_upgrade: 2021.7.9
47+
- version: 2021.7.9
48+
version_to_upgrade: 2025.6.0
4749
- version: 2023.8.6
4850
version_to_upgrade: 2021.7.9
4951
- version: 2023.8.6

Gemfile

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ group :development do
3838
gem "rubocop-factory_bot", '~> 2.27.1', require: false
3939
gem "rubocop-capybara", '~> 2.22.1', require: false
4040
gem "rb-readline", '= 0.5.5', require: false, platforms: [:mswin, :mingw, :x64_mingw]
41-
#gem "bolt", '>= 4.0.0', require: false
41+
gem "bolt", '>= 4.0.0', require: false
4242
gem "github_changelog_generator", '1.16.4', require: false
4343
gem "octokit", '4.21.0', require: false
4444
gem "orchestrator_client", '< 0.7.1', require: false
@@ -55,24 +55,14 @@ end
5555
puppet_version = ENV['PUPPET_GEM_VERSION']
5656
facter_version = ENV['FACTER_GEM_VERSION']
5757
hiera_version = ENV['HIERA_GEM_VERSION']
58-
bolt_version = ENV.fetch('BOLT_GEM_VERSION', nil)
5958

6059
gems = {}
6160

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

74-
# If hiera version have been specified via the environment
63+
# If facter or hiera versions have been specified via the environment
7564
# variables
65+
gems['facter'] = location_for(facter_version) if facter_version
7666
gems['hiera'] = location_for(hiera_version) if hiera_version
7767

7868
gems.each do |gem_name, gem_params|

plans/subplans/install.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@
429429
run_task('peadm::puppet_runonce', $target)
430430
}
431431

432-
wait([$bg_db_run])
432+
wait([$bg_db_run], 1200, _catch_errors => true)
433433

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

0 commit comments

Comments
 (0)