puppet_litmus 0.7.2 → 0.7.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_tasks.rb +1 -1
- data/lib/puppet_litmus/serverspec.rb +5 -1
- data/lib/puppet_litmus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec6350d63289e4fdc5aa4f76298c0cc9195e5572
|
4
|
+
data.tar.gz: 7e1c6d2c9c7f80b8e72bdf02435e3308fae11196
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44efea7bc201db842bc9b24a985f929e97b014c3336190a8371ca989b911bbe5f762220c36c64b385ec1da19bcefe052f55cb670ee40f9dba41f34510f549a8c
|
7
|
+
data.tar.gz: 1846a20f07f9bf4c70929b4fd210376fa9be2da40aa0b715b17e5993e6630c7d82ab997bea2d31a9f802e40b8e360a262fcdd66878e60ca757300b0e968fbcec
|
@@ -280,7 +280,7 @@ namespace :litmus do
|
|
280
280
|
else
|
281
281
|
args[:target_node_name]
|
282
282
|
end
|
283
|
-
run_local_command("bundle exec bolt file upload #{module_tar} /tmp/#{File.basename(module_tar)} --nodes #{target_string} --inventoryfile inventory.yaml")
|
283
|
+
run_local_command("bundle exec bolt file upload \"#{module_tar}\" /tmp/#{File.basename(module_tar)} --nodes #{target_string} --inventoryfile inventory.yaml")
|
284
284
|
install_module_command = "puppet module install /tmp/#{File.basename(module_tar)}"
|
285
285
|
result = run_command(install_module_command, target_nodes, config: nil, inventory: inventory_hash)
|
286
286
|
# rubocop:disable Style/GuardClause
|
@@ -148,8 +148,12 @@ module PuppetLitmus::Serverspec
|
|
148
148
|
# @return [Object] A result object from the task.The values available are stdout, stderr and result.
|
149
149
|
def run_bolt_task(task_name, params = {}, opts = {})
|
150
150
|
config_data = { 'modulepath' => File.join(Dir.pwd, 'spec', 'fixtures', 'modules') }
|
151
|
-
inventory_hash = inventory_hash_from_inventory_file
|
152
151
|
target_node_name = ENV['TARGET_HOST'] if target_node_name.nil?
|
152
|
+
inventory_hash = if target_node_name.nil? || target_node_name == 'localhost'
|
153
|
+
nil
|
154
|
+
else
|
155
|
+
inventory_hash_from_inventory_file
|
156
|
+
end
|
153
157
|
|
154
158
|
result = run_task(task_name, target_node_name, params, config: config_data, inventory: inventory_hash)
|
155
159
|
result_obj = {
|
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: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bolt
|