kitchen-ansible 0.0.29 → 0.0.30
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4def5cead360b7cb91dbcaaddcbe28da905a5a1
|
|
4
|
+
data.tar.gz: eba30ebe678d3a5ea90225a3a9175a979d52aa34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: af56e57ddc2bc21c9de8617b9296a97b8ce1c61abb759babacd6791aebc39bdcbf6d974db1507ad1c192439315d20fe97ce069bef24de439e89ebb6e3be012c3
|
|
7
|
+
data.tar.gz: 0b8bc51b45e127dbd05b89929e261993d13917845b4e4b28110ef3a63b123ac504289e77df40213c8d9dc7eac0cbc91ece992c8e0b040b7f2d231c8b537aa0c2
|
|
@@ -94,6 +94,14 @@ module Kitchen
|
|
|
94
94
|
provisioner.calculate_path('Ansiblefile', :file)
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
+
default_config :library_plugins_path do |provisioner|
|
|
98
|
+
provisioner.calculate_path('library', :directory)
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
default_config :callback_plugins_path do |provisioner|
|
|
102
|
+
provisioner.calculate_path('callback_plugins', :directory)
|
|
103
|
+
end
|
|
104
|
+
|
|
97
105
|
default_config :filter_plugins_path do |provisioner|
|
|
98
106
|
provisioner.calculate_path('filter_plugins', :directory)
|
|
99
107
|
end
|
|
@@ -224,6 +224,8 @@ module Kitchen
|
|
|
224
224
|
prepare_host_vars
|
|
225
225
|
prepare_hosts
|
|
226
226
|
prepare_spec
|
|
227
|
+
prepare_library_plugins
|
|
228
|
+
prepare_callback_plugins
|
|
227
229
|
prepare_filter_plugins
|
|
228
230
|
prepare_lookup_plugins
|
|
229
231
|
prepare_ansible_vault_password_file
|
|
@@ -458,6 +460,14 @@ module Kitchen
|
|
|
458
460
|
File.join(sandbox_path, 'spec')
|
|
459
461
|
end
|
|
460
462
|
|
|
463
|
+
def tmp_library_plugins_dir
|
|
464
|
+
File.join(sandbox_path, 'library')
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
def tmp_callback_plugins_dir
|
|
468
|
+
File.join(sandbox_path, 'callback_plugins')
|
|
469
|
+
end
|
|
470
|
+
|
|
461
471
|
def tmp_filter_plugins_dir
|
|
462
472
|
File.join(sandbox_path, 'filter_plugins')
|
|
463
473
|
end
|
|
@@ -518,6 +528,14 @@ module Kitchen
|
|
|
518
528
|
config[:host_vars_path].to_s
|
|
519
529
|
end
|
|
520
530
|
|
|
531
|
+
def library_plugins
|
|
532
|
+
config[:library_plugins_path].to_s
|
|
533
|
+
end
|
|
534
|
+
|
|
535
|
+
def callback_plugins
|
|
536
|
+
config[:callback_plugins_path].to_s
|
|
537
|
+
end
|
|
538
|
+
|
|
521
539
|
def filter_plugins
|
|
522
540
|
config[:filter_plugins_path].to_s
|
|
523
541
|
end
|
|
@@ -823,6 +841,30 @@ module Kitchen
|
|
|
823
841
|
end
|
|
824
842
|
end
|
|
825
843
|
|
|
844
|
+
def prepare_library_plugins
|
|
845
|
+
info('Preparing library plugins')
|
|
846
|
+
FileUtils.mkdir_p(tmp_library_plugins_dir)
|
|
847
|
+
|
|
848
|
+
if library_plugins && File.directory?(library_plugins)
|
|
849
|
+
debug("Using library plugins from #{library_plugins}")
|
|
850
|
+
FileUtils.cp_r(Dir.glob("#{library_plugins}/{*,!*.pyc}"), tmp_library_plugins_dir, remove_destination: true)
|
|
851
|
+
else
|
|
852
|
+
info 'nothing to do for library plugins'
|
|
853
|
+
end
|
|
854
|
+
end
|
|
855
|
+
|
|
856
|
+
def prepare_callback_plugins
|
|
857
|
+
info('Preparing callback plugins')
|
|
858
|
+
FileUtils.mkdir_p(tmp_callback_plugins_dir)
|
|
859
|
+
|
|
860
|
+
if callback_plugins && File.directory?(callback_plugins)
|
|
861
|
+
debug("Using callback plugins from #{callback_plugins}")
|
|
862
|
+
FileUtils.cp_r(Dir.glob("#{callback_plugins}/{*,!*.pyc}"), tmp_callback_plugins_dir, remove_destination: true)
|
|
863
|
+
else
|
|
864
|
+
info 'nothing to do for callback plugins'
|
|
865
|
+
end
|
|
866
|
+
end
|
|
867
|
+
|
|
826
868
|
def prepare_filter_plugins
|
|
827
869
|
info('Preparing filter_plugins')
|
|
828
870
|
FileUtils.mkdir_p(tmp_filter_plugins_dir)
|
data/provisioner_options.md
CHANGED
|
@@ -23,6 +23,8 @@ no_proxy | nil | list of URLs or IPs that should be excluded from proxying
|
|
|
23
23
|
roles_path | roles | ansible repo roles directory
|
|
24
24
|
group_vars_path | group_vars | ansible repo group_vars directory
|
|
25
25
|
host_vars_path | host_vars | ansible repo hosts directory
|
|
26
|
+
library_plugins | library | ansible repo library plugins directory
|
|
27
|
+
callback_plugins | callback_plugins | ansible repo callback_plugins directory
|
|
26
28
|
filter_plugins | filter_plugins | ansible repo filter_plugins directory
|
|
27
29
|
lookup_plugins | lookup_plugins | ansible repo lookup_plugins directory
|
|
28
30
|
additional_copy_path | | arbitrary array of files and directories to copy into test environment, relative to CWD. (eg, vars or included playbooks)
|
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.0.
|
|
4
|
+
version: 0.0.30
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Neill Turner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-10-
|
|
11
|
+
date: 2015-10-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: test-kitchen
|