kitchen-ansible 0.48.6 → 0.48.7
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 +4 -4
- data/README.md +2 -1
- data/lib/kitchen-ansible/version.rb +1 -1
- data/lib/kitchen/provisioner/ansible/config.rb +1 -0
- data/lib/kitchen/provisioner/ansible_playbook.rb +6 -0
- data/provisioner_options.md +1 -0
- 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: aeeb31c686df588e1ebd507c39474dee207b7038
|
|
4
|
+
data.tar.gz: 95a93b193c27b512e1b3ec805b03e4df6c961844
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10f8f7bfc521299e2e114bb830897ceaa17dec1937c4278cef5087691de9042ba2fce6aea8a4ad7f0e47395e3718a46251e992b13570953475a6df4a441c8167
|
|
7
|
+
data.tar.gz: c6088fc86d1901c9e7d664f3289ea0db4771af222b3a9fd6720945c2d79ebdb6f0cfa84760a1a5bf675a2cc9b73eb8693a09282363e19b56f01791ed36def8d7
|
data/README.md
CHANGED
|
@@ -35,7 +35,8 @@ gem install kitchen-vagrant
|
|
|
35
35
|
|
|
36
36
|
## Resources
|
|
37
37
|
* https://blog.superk.org/home/ansible-role-development
|
|
38
|
-
*
|
|
38
|
+
* https://alexharv074.github.io/2016/05/25/testing-an-ansible-role-using-test-kitchen.html
|
|
39
|
+
* https://alexharv074.github.io/2016/06/13/integration-testing-using-ansible-and-test-kitchen.html
|
|
39
40
|
* https://github.com/MattHodge/ansible-testkitchen-windows
|
|
40
41
|
* https://readme.fr/continuous-integration-for-ansible/
|
|
41
42
|
* https://dantehranian.wordpress.com/2015/06/18/testing-ansible-roles-with-test-kitchen
|
|
@@ -89,6 +89,7 @@ module Kitchen
|
|
|
89
89
|
default_config :custom_post_play_command, nil
|
|
90
90
|
default_config :show_command_output, false
|
|
91
91
|
default_config :ignore_ansible_cfg, false
|
|
92
|
+
default_config :galaxy_ignore_certs, false
|
|
92
93
|
|
|
93
94
|
default_config :playbook do |provisioner|
|
|
94
95
|
provisioner.calculate_path('default.yml', :file) ||
|
|
@@ -458,6 +458,7 @@ module Kitchen
|
|
|
458
458
|
def ansible_galaxy_command
|
|
459
459
|
cmd = [
|
|
460
460
|
'ansible-galaxy', 'install', '--force',
|
|
461
|
+
galaxy_cert_ignore,
|
|
461
462
|
'-p', File.join(config[:root_path], 'roles'),
|
|
462
463
|
'-r', File.join(config[:root_path], galaxy_requirements)
|
|
463
464
|
].join(' ')
|
|
@@ -1216,6 +1217,11 @@ module Kitchen
|
|
|
1216
1217
|
Ansible::Librarian.new(ansiblefile, tmp_roles_dir, logger).resolve
|
|
1217
1218
|
end
|
|
1218
1219
|
end
|
|
1220
|
+
|
|
1221
|
+
def galaxy_cert_ignore
|
|
1222
|
+
config[:galaxy_ignore_certs] ? '--ignore-certs' : nil
|
|
1223
|
+
end
|
|
1224
|
+
|
|
1219
1225
|
end
|
|
1220
1226
|
end
|
|
1221
1227
|
end
|
data/provisioner_options.md
CHANGED
|
@@ -67,6 +67,7 @@ env_vars | Hash.new | Hash to set environment variable to use with `ansible-play
|
|
|
67
67
|
extra_vars | Hash.new | Hash to set the `extra_vars` passed to `ansible-playbook` command
|
|
68
68
|
extra_vars_file | nil | file containing environment variables e.g. `private_vars/production.yml site.yml` Don't prefix with a @ sign.
|
|
69
69
|
filter_plugins_path | filter_plugins | Ansible repo `filter_plugins` directory
|
|
70
|
+
galaxy_ignore_certs | false | Ignore certificate errors when installing roles with ansible-galaxy.
|
|
70
71
|
group_vars_path | group_vars | Ansible repo group_vars directory
|
|
71
72
|
host_vars_path | host_vars | Ansible repo hosts directory
|
|
72
73
|
hosts | | Create Ansible hosts file for localhost with this server group or list of groups
|
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.48.
|
|
4
|
+
version: 0.48.7
|
|
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-
|
|
11
|
+
date: 2018-09-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|