kitchen-ansible 0.48.8 → 0.49.0
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8a3a081e05d3e114eee73aabc00ba27a7a23d5811ae2a7fec5795dd9caeaeff4
|
|
4
|
+
data.tar.gz: 7de303e363b104022de49f799bf289d9c834df47843430e15c48fc2dfac02e45
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fbba53a30ad0afbde098f019544777e94a0a323bfa04a33612671a623f26cd137c180c7bbe6b4acd929ee3cb4c7d1daa15b866f1bc87a2bbdad92172e8954155
|
|
7
|
+
data.tar.gz: f764da95bd4668f28ef81d57e240ad60181cf9c14ca0006af737d5b90f35deb77ee7dfd0ad4cb6b7dcf1584cf74dfe36eb1b79dfce6936cd6a1c6b2b4f769a38
|
|
@@ -90,6 +90,7 @@ module Kitchen
|
|
|
90
90
|
default_config :show_command_output, false
|
|
91
91
|
default_config :ignore_ansible_cfg, false
|
|
92
92
|
default_config :galaxy_ignore_certs, false
|
|
93
|
+
default_config :keep_playbook_path, false
|
|
93
94
|
|
|
94
95
|
default_config :playbook do |provisioner|
|
|
95
96
|
provisioner.calculate_path('default.yml', :file) ||
|
|
@@ -422,7 +422,7 @@ module Kitchen
|
|
|
422
422
|
extra_vars_file,
|
|
423
423
|
tags(idempotence),
|
|
424
424
|
ansible_extra_flags,
|
|
425
|
-
|
|
425
|
+
playbook_remote_path
|
|
426
426
|
].join(' ')
|
|
427
427
|
end
|
|
428
428
|
result = _run(cmd)
|
|
@@ -573,7 +573,8 @@ module Kitchen
|
|
|
573
573
|
end
|
|
574
574
|
|
|
575
575
|
def tmp_playbook_path
|
|
576
|
-
File.join(sandbox_path,
|
|
576
|
+
return File.join(sandbox_path, playbook).to_s if config[:keep_playbook_path]
|
|
577
|
+
File.join(sandbox_path, File.basename(playbook)).to_s
|
|
577
578
|
end
|
|
578
579
|
|
|
579
580
|
def tmp_host_vars_dir
|
|
@@ -637,6 +638,11 @@ module Kitchen
|
|
|
637
638
|
config[:playbook]
|
|
638
639
|
end
|
|
639
640
|
|
|
641
|
+
def playbook_remote_path
|
|
642
|
+
return File.join(config[:root_path], config[:playbook]).to_s if config[:keep_playbook_path]
|
|
643
|
+
File.join(config[:root_path], File.basename(config[:playbook])).to_s
|
|
644
|
+
end
|
|
645
|
+
|
|
640
646
|
def hosts
|
|
641
647
|
config[:hosts]
|
|
642
648
|
end
|
|
@@ -1034,6 +1040,7 @@ module Kitchen
|
|
|
1034
1040
|
def prepare_playbook
|
|
1035
1041
|
info('Preparing playbook')
|
|
1036
1042
|
debug("Copying playbook from #{playbook} to #{tmp_playbook_path}")
|
|
1043
|
+
FileUtils.mkdir_p(File.dirname(tmp_playbook_path)) if config[:keep_playbook_path]
|
|
1037
1044
|
FileUtils.cp_r(playbook, tmp_playbook_path)
|
|
1038
1045
|
end
|
|
1039
1046
|
|
data/provisioner_options.md
CHANGED
|
@@ -79,6 +79,7 @@ idempotency_skip_tags | [] | Adds a `--skip-tags` parameter with the specified t
|
|
|
79
79
|
ignore_extensions_from_root | ['.pyc'] | allow extensions to be ignored when copying from roles using additional_copy_role_path or doing recursive_additional_copy_path
|
|
80
80
|
ignore_paths_from_root | [] | allow extra paths to be ignored when copying from roles using additional_copy_role_path or using recursive_additional_copy_path
|
|
81
81
|
kerberos_conf_file | | Path of krb5.conf file using in Windows support
|
|
82
|
+
keep_playbook_path | false | Keep directory structure of `playbook`, e.g. when including vars with relativ paths from playbook
|
|
82
83
|
library_plugins_path | library | Ansible repo library plugins directory
|
|
83
84
|
lookup_plugins_path | lookup_plugins | Ansible repo `lookup_plugins` directory
|
|
84
85
|
max_retries | 1 | maximum number of retry attempts of converge command
|
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.
|
|
4
|
+
version: 0.49.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Neill Turner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-10-
|
|
11
|
+
date: 2018-10-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|