kitchen-ansible 0.47.1 → 0.47.2
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/lib/kitchen/provisioner/ansible_playbook.rb +9 -0
- data/lib/kitchen-ansible/version.rb +1 -1
- data/provisioner_options.md +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: c3dd8c9159c950e8fde92b7af78ea9c0fd60bd15
|
|
4
|
+
data.tar.gz: 05953af8cd5fa4fc3e60ed8cc09463576ab19d1d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8edae71515a2652af588fb5ed1524c99825235ef38ee3c7720c86b4aedb75c194200ad820bbb268033069f5cc8388fb393ef47198335bfe82fd5deb37ff89192
|
|
7
|
+
data.tar.gz: a560098d97a3a0de38bdd326dd870bbc76a9561b5d74d824c0ff147899af53bee40eb5d93ac906429d24ad5a3a68df49e47a7ef9995a03165f8c3c6550c6ce6b
|
|
@@ -980,6 +980,15 @@ module Kitchen
|
|
|
980
980
|
|
|
981
981
|
if config[:hosts].nil?
|
|
982
982
|
fail 'No hosts have been set. Please specify one in .kitchen.yml'
|
|
983
|
+
elsif config[:hosts].is_a?(Array)
|
|
984
|
+
debug("Using an array of hosts from #{hosts}")
|
|
985
|
+
File.open(File.join(sandbox_path, 'hosts'), 'wb') do |file|
|
|
986
|
+
hoststring="localhost ansible_connection=local\n"
|
|
987
|
+
config[:hosts].each do |h|
|
|
988
|
+
hoststring+="[#{h}]\nlocalhost\n\n"
|
|
989
|
+
end
|
|
990
|
+
file.write(hoststring)
|
|
991
|
+
end
|
|
983
992
|
else
|
|
984
993
|
debug("Using host from #{hosts}")
|
|
985
994
|
File.open(File.join(sandbox_path, 'hosts'), 'wb') do |file|
|
data/provisioner_options.md
CHANGED
|
@@ -66,7 +66,7 @@ extra_vars_file | nil | file containing environment variables e.g. `private_vars
|
|
|
66
66
|
filter_plugins_path | filter_plugins | Ansible repo `filter_plugins` directory
|
|
67
67
|
group_vars_path | group_vars | Ansible repo group_vars directory
|
|
68
68
|
host_vars_path | host_vars | Ansible repo hosts directory
|
|
69
|
-
hosts | | Create Ansible hosts file for localhost with this server group
|
|
69
|
+
hosts | | Create Ansible hosts file for localhost with this server group or list of groups
|
|
70
70
|
http_proxy | nil | Use HTTP proxy when installing Ansible, packages and running Ansible
|
|
71
71
|
https_proxy | nil | Use HTTPS proxy when installing Ansible, packages and running Ansible
|
|
72
72
|
idempotency_test | false | Enable to test Ansible playbook idempotency
|
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.2
|
|
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-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: test-kitchen
|