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 +4 -4
- data/lib/puppet_litmus/rake_helper.rb +11 -0
- data/lib/puppet_litmus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 22c11b3bcf764a0382e1a279478e75700a69e8ca5036f70524ba8faf481801d9
|
|
4
|
+
data.tar.gz: 57e123c41a4af67a372dd3eea5ed2097aef8acf5c16f541ebb50e45371d37b5c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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'
|
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.
|
|
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-
|
|
11
|
+
date: 2025-12-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bolt
|