puppet_litmus 2.4.1 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6c8a0cd69ad8f6cfb4eed234dfd6bc8debe88a1a7ef0b2945ff6d21c4addb90
4
- data.tar.gz: c0fa10be3afdcbcca5309f40bcf785c1a3b1156261e329288c63c1aa8f2535f9
3
+ metadata.gz: 22c11b3bcf764a0382e1a279478e75700a69e8ca5036f70524ba8faf481801d9
4
+ data.tar.gz: 57e123c41a4af67a372dd3eea5ed2097aef8acf5c16f541ebb50e45371d37b5c
5
5
  SHA512:
6
- metadata.gz: 6bac57d756f85876882d6741cad40f56c386bd99b4d5ea34abd8137beaac21acb94cbc45ed26bba962d4fc7c115952d77f5076e4a8b4b2c233b55ed2cf0fbecb
7
- data.tar.gz: 96dcb4de5adfd5ad7eab0ae916fdb9cc45c937a7758b2ee754d2936b7915bfbc35b2c5c6898e836f3027fa35d9799a77d818dab89cce90aa7da15bd55bbaa13d
6
+ metadata.gz: 8f47e7152bac5c02ec4dc401ce4867fab8190f6af44f24fabf34b5ea209fa070dc09e4f15d28adc46f0d7f0f703da07b03083a83619b4b66fdb11626795709c6
7
+ data.tar.gz: 19956f2b450097de996b2d1fb87d38e756b41933963e2d06ce7d9251a1589f9aeb3ceb55523f09aa940e5ab3140970c0bc48c00ac3e6cdcee6e7e2e78ec8cde6
@@ -143,8 +143,19 @@ module PuppetLitmus::RakeHelper # rubocop:disable Metrics/ModuleLength
143
143
  raise 'puppetcore agent installs require a valid PUPPET_FORGE_TOKEN set in the env.' \
144
144
  if collection =~ /\Apuppetcore.*/ && !forge_token
145
145
 
146
+ # Fix for SLES systems - ensure credentials file exists before agent installation
147
+ targets.each do |target|
148
+ node_facts = facts_from_node(inventory_hash, target)
149
+ next unless node_facts && node_facts['platform'] =~ /sles/i
150
+
151
+ result = run_command('touch /etc/zypp/credentials.d/PuppetcoreCreds',
152
+ target, config: DEFAULT_CONFIG_DATA, inventory: inventory_hash.clone)
153
+ raise_bolt_errors(result, "Failed to create Puppet credentials file on SLES target #{target}.")
154
+ end
155
+
146
156
  # using boltspec, when the runner is called it changes the inventory_hash dropping the version field. The clone works around this
147
157
  bolt_result = run_task('puppet_agent::install', targets, params, config: DEFAULT_CONFIG_DATA, inventory: inventory_hash.clone)
158
+
148
159
  targets.each do |target|
149
160
  params = {
150
161
  'path' => '/opt/puppetlabs/bin'
@@ -2,5 +2,5 @@
2
2
 
3
3
  # version of this gem
4
4
  module PuppetLitmus
5
- VERSION = '2.4.1'
5
+ VERSION = '2.4.2'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet_litmus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-10-14 00:00:00.000000000 Z
11
+ date: 2025-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bolt