puppet_litmus 2.4.0 → 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 +13 -1
- 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
|
|
@@ -130,9 +130,10 @@ module PuppetLitmus::RakeHelper # rubocop:disable Metrics/ModuleLength
|
|
|
130
130
|
def install_agent(collection, targets, inventory_hash)
|
|
131
131
|
include ::BoltSpec::Run
|
|
132
132
|
puppet_version = ENV.fetch('PUPPET_VERSION', nil)
|
|
133
|
+
# Skip forge token assignation when pointing to private collection endpoints as it is only accesible via VPN and it fails when credentials are passed.
|
|
133
134
|
forge_token = ENV.fetch('PUPPET_FORGE_TOKEN', nil)
|
|
134
135
|
params = {}
|
|
135
|
-
params['password'] = forge_token if forge_token
|
|
136
|
+
params['password'] = forge_token if forge_token && !collection.include?('puppetcore8-nightly')
|
|
136
137
|
params['collection'] = collection if collection
|
|
137
138
|
params['version'] = puppet_version if puppet_version
|
|
138
139
|
|
|
@@ -142,8 +143,19 @@ module PuppetLitmus::RakeHelper # rubocop:disable Metrics/ModuleLength
|
|
|
142
143
|
raise 'puppetcore agent installs require a valid PUPPET_FORGE_TOKEN set in the env.' \
|
|
143
144
|
if collection =~ /\Apuppetcore.*/ && !forge_token
|
|
144
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
|
+
|
|
145
156
|
# using boltspec, when the runner is called it changes the inventory_hash dropping the version field. The clone works around this
|
|
146
157
|
bolt_result = run_task('puppet_agent::install', targets, params, config: DEFAULT_CONFIG_DATA, inventory: inventory_hash.clone)
|
|
158
|
+
|
|
147
159
|
targets.each do |target|
|
|
148
160
|
params = {
|
|
149
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
|