kitchen-ansible 0.54.0 → 0.55.0

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
  SHA256:
3
- metadata.gz: 14915690b90c67925cde829c63de6b9198162986fc2637283f075ea7b37dc4c0
4
- data.tar.gz: 86eca88881b0d5c2deb47a877576cc00ccf22e7cbf03cbd67782886bda64b54f
3
+ metadata.gz: 3b1b9ed5296c5ccc0a6c0de5ed5dffda713e3cdfd36c835d6911591a89d92c40
4
+ data.tar.gz: 39ee501a044573823c5b1bf321d15d81ce9a557446ff664c917216f54723b21f
5
5
  SHA512:
6
- metadata.gz: 5952847769f6d7bca3b015d6b9853d29726d1a47d0d24390ffd1ab52ac1cb663efd9abd97bdb2c0f7863683ea7c30287e80804a7f5cdf9dc770cf838330a34b6
7
- data.tar.gz: d9c508902611e6716e14e07813dd9ed1057db8d2e09306134d1d39afd06bd574461e82fef3afb20b2d5b2b807dee33182e7f8dff1fa830a00f730905c40e1ab8
6
+ metadata.gz: 5c51f85d84585dbb8c888be34d11b877ec954de08230816767ac9754360798655b4a69f3414aebc6f415ed034dc21715ac35364ee1c0f74ad2a30343a90ab982
7
+ data.tar.gz: beecbbc16b179865e4e7123860462101857151105f8697821618f8feb21406ff241fe9dd61b4e737d64d4d4d6af7cb0471804ec0ef81eb5fdd2986df7ce8ecce
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module Kitchen
3
3
  module Ansible
4
- VERSION = '0.54.0'.freeze
4
+ VERSION = '0.55.0'.freeze
5
5
  end
6
6
  end
@@ -888,7 +888,16 @@ module Kitchen
888
888
 
889
889
  def extra_vars_file
890
890
  return nil if config[:extra_vars_file].nil?
891
- bash_extra_vars = "-e '\@#{config[:extra_vars_file]}'"
891
+ bash_extra_vars = ''
892
+ if config[:extra_vars_file].is_a?(String)
893
+ bash_extra_vars = "-e '\@#{config[:extra_vars_file]}'"
894
+ elsif config[:extra_vars_file].is_a?(Array)
895
+ config[:extra_vars_file].each { |x|
896
+ info("Adding -e '\@#{x}'")
897
+ bash_extra_vars += " -e '\@#{x}'"
898
+ }
899
+ end
900
+
892
901
  debug(bash_extra_vars)
893
902
  bash_extra_vars
894
903
  end
@@ -72,7 +72,7 @@ custom_post_play_command | nil | Custom shell command to be used after the ansib
72
72
  enable_yum_epel | false | Enable the `yum` EPEL repo
73
73
  env_vars | Hash.new | Hash to set environment variable to use with `ansible-playbook` command
74
74
  extra_vars | Hash.new | Hash to set the `extra_vars` passed to `ansible-playbook` command
75
- extra_vars_file | nil | file containing environment variables e.g. `private_vars/production.yml site.yml` Don't prefix with a @ sign.
75
+ extra_vars_file | nil | String containing a filename or an Array of filenames containing environment variables e.g. `private_vars/production.yml` or `[file1.yml, file2.yml]` Don't prefix with a @ sign.
76
76
  filter_plugins_path | filter_plugins | Ansible repo `filter_plugins` directory
77
77
  galaxy_ignore_certs | false | Ignore certificate errors when installing roles with ansible-galaxy.
78
78
  group_vars_path | group_vars | Ansible repo group_vars directory
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.54.0
4
+ version: 0.55.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: 2020-12-12 00:00:00.000000000 Z
11
+ date: 2021-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec