puppet_litmus 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- 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: 8481f68695821e0c43b5f940fc3d3923a591d9eea517b584c68ac89a4a2d8705
|
4
|
+
data.tar.gz: cc2c8065859e96290760d4320d701dc8cfb367041360b5287eda12a9fdf9eb45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aefe6ab00559d2a6726626e4d2d3819025565c152624c0c42e88c1a2c323c1b025540fbca5bd64a110b7947682f5fe173ea6788425be6c5512e7653ef6eeee0
|
7
|
+
data.tar.gz: 11f0c2f06e8be551a2c7efdd262256fa3f90fb5942576c2665d4064a23357a1a20081baa81983fcdd1e39832a1c7a0f3e84a999bf35c12386cf26ebbe9c31201
|
@@ -142,6 +142,17 @@ module PuppetLitmus::RakeHelper
|
|
142
142
|
|
143
143
|
# using boltspec, when the runner is called it changes the inventory_hash dropping the version field. The clone works around this
|
144
144
|
bolt_result = run_task('puppet_agent::install', targets, params, config: DEFAULT_CONFIG_DATA, inventory: inventory_hash.clone)
|
145
|
+
targets.each do |target|
|
146
|
+
params = {
|
147
|
+
'path' => '/opt/puppetlabs/bin'
|
148
|
+
}
|
149
|
+
node_facts = facts_from_node(inventory_hash, target)
|
150
|
+
next unless node_facts['provisioner'] == 'vagrant'
|
151
|
+
|
152
|
+
puts "Adding puppet agent binary to the secure_path on target #{target}."
|
153
|
+
result = run_task('provision::fix_secure_path', target, params, config: DEFAULT_CONFIG_DATA, inventory: inventory_hash.clone)
|
154
|
+
raise_bolt_errors(result, "Failed to add the Puppet agent binary to the secure_path on target #{target}.")
|
155
|
+
end
|
145
156
|
raise_bolt_errors(bolt_result, 'Installation of agent failed.')
|
146
157
|
bolt_result
|
147
158
|
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: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bolt
|