kitchen-ansible 0.47.1 → 0.47.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 834b027ab5fac64b2bbe85384e903dc3c264c471
4
- data.tar.gz: b04fda5b3e316ec67459e1949a77fddc36988ad2
3
+ metadata.gz: c3dd8c9159c950e8fde92b7af78ea9c0fd60bd15
4
+ data.tar.gz: 05953af8cd5fa4fc3e60ed8cc09463576ab19d1d
5
5
  SHA512:
6
- metadata.gz: f25c60dda7958c8bf075fbc1a903b9ce35ee64d0fdd66a7b0010bbbf9acb8eb2e7d43b6b6c4b8f74b7c5261e6e40e25d72cd1a67091abc7610e31f6f2c13a538
7
- data.tar.gz: 907c70037a0b0f5b54dcc47e0f3cb5a473af3c90aabd441de540df3b8365dbe4a4fbaea1bf6e09908246bf4fe5d17d06f680ced382427f1a0998773b583ee4e2
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|
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module Kitchen
3
3
  module Ansible
4
- VERSION = '0.47.1'.freeze
4
+ VERSION = '0.47.2'.freeze
5
5
  end
6
6
  end
@@ -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.1
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-22 00:00:00.000000000 Z
11
+ date: 2017-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen