kitchen-ansible 0.47.0 → 0.47.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kitchen-ansible/version.rb +1 -1
- data/lib/kitchen/provisioner/ansible_playbook.rb +19 -5
- 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: 834b027ab5fac64b2bbe85384e903dc3c264c471
|
4
|
+
data.tar.gz: b04fda5b3e316ec67459e1949a77fddc36988ad2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f25c60dda7958c8bf075fbc1a903b9ce35ee64d0fdd66a7b0010bbbf9acb8eb2e7d43b6b6c4b8f74b7c5261e6e40e25d72cd1a67091abc7610e31f6f2c13a538
|
7
|
+
data.tar.gz: 907c70037a0b0f5b54dcc47e0f3cb5a473af3c90aabd441de540df3b8365dbe4a4fbaea1bf6e09908246bf4fe5d17d06f680ced382427f1a0998773b583ee4e2
|
@@ -881,10 +881,10 @@ module Kitchen
|
|
881
881
|
roles_paths << File.join(config[:root_path], 'roles') unless config[:roles_path].nil?
|
882
882
|
if config[:additional_copy_role_path]
|
883
883
|
if config[:additional_copy_role_path].is_a? String
|
884
|
-
roles_paths << File.
|
884
|
+
roles_paths << File.join(config[:root_path], File.basename(config[:additional_copy_role_path]))
|
885
885
|
else
|
886
|
-
config[:
|
887
|
-
roles_paths << File.join(config[:root_path], File.
|
886
|
+
config[:additional_copy_role_path].each do |path|
|
887
|
+
roles_paths << File.join(config[:root_path], File.basename(File.expand_path(path)))
|
888
888
|
end
|
889
889
|
end
|
890
890
|
end
|
@@ -899,7 +899,7 @@ module Kitchen
|
|
899
899
|
|
900
900
|
def prepare_roles
|
901
901
|
info('Preparing roles')
|
902
|
-
debug("Using roles from #{roles}")
|
902
|
+
debug("Using roles from #{File.expand_path(roles)}")
|
903
903
|
|
904
904
|
resolve_with_librarian if File.exist?(ansiblefile)
|
905
905
|
|
@@ -909,6 +909,21 @@ module Kitchen
|
|
909
909
|
FileUtils.cp(File.expand_path(galaxy_requirements), dest)
|
910
910
|
end
|
911
911
|
|
912
|
+
if config[:additional_copy_role_path]
|
913
|
+
if config[:additional_copy_role_path].is_a? String
|
914
|
+
debug("Using additional roles copy from #{File.expand_path(config[:additional_copy_role_path])}")
|
915
|
+
dest = File.join(sandbox_path, File.basename(File.expand_path(config[:additional_copy_role_path])))
|
916
|
+
FileUtils.mkdir_p(File.dirname(dest))
|
917
|
+
FileUtils.cp_r(File.expand_path(config[:additional_copy_role_path]), dest)
|
918
|
+
else
|
919
|
+
config[:additional_copy_role_path].each do |path|
|
920
|
+
dest = File.join(sandbox_path, File.basename(File.expand_path(path)))
|
921
|
+
FileUtils.mkdir_p(File.dirname(dest))
|
922
|
+
FileUtils.cp_r(File.expand_path(path), dest)
|
923
|
+
end
|
924
|
+
end
|
925
|
+
end
|
926
|
+
|
912
927
|
FileUtils.mkdir_p(File.join(tmp_roles_dir, role_name))
|
913
928
|
Find.find(roles) do |source|
|
914
929
|
# Detect whether we are running tests on a role
|
@@ -917,7 +932,6 @@ module Kitchen
|
|
917
932
|
unless roles =~ /\/roles$/
|
918
933
|
role_path = "#{role_name}/#{role_path}"
|
919
934
|
end
|
920
|
-
|
921
935
|
target = File.join(tmp_roles_dir, role_path)
|
922
936
|
|
923
937
|
Find.prune if config[:ignore_paths_from_root].include? File.basename(source)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-ansible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.47.
|
4
|
+
version: 0.47.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neill Turner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|