kitchen-ansible 0.45.10 → 0.46.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
  SHA1:
3
- metadata.gz: b463095cd797417258a95d759e384d820b048a8d
4
- data.tar.gz: 71dd44263e0165e9edc58d1c31061d0ca6539b8f
3
+ metadata.gz: 24e506b16b7566a6c179b3ba75f7bf0a49d932d9
4
+ data.tar.gz: 45e03baef7f9bb872622f085ce5a72488900d9b6
5
5
  SHA512:
6
- metadata.gz: 9c72694cedc927590db7191dd92e8266530a2aaac35ff264d150f11f7b23ee664fb3a0527b16aeb6a96fad8b26c5ac1463b8895cbb1bd11554a67ed055e28650
7
- data.tar.gz: 7544baa781c31c89710736d550138af40405a6402a3bf7c78114fc4dff48ab15757d4880e06fd13b260b931eb208d5c4661b304856bd2b2b9d39ba92f193855c
6
+ metadata.gz: 402e8bff85a9b3c8a130cb314d466609558aa4c43073e8fb77d3096680d33772a0eaf58dccb24c7d07b82268d1bf523343cbb811b58143a7eedf6db2ae4e70f2
7
+ data.tar.gz: dc54f9033f6118c5af36d7b76ac500e209a5d0b59c39fbce9903cc1059b773773513afe37f6a8b4cb2617673281193641a1272903d777dc326cc4b2c10db6ee1
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module Kitchen
3
3
  module Ansible
4
- VERSION = '0.45.10'
4
+ VERSION = '0.46.0'
5
5
  end
6
6
  end
@@ -39,6 +39,7 @@ module Kitchen
39
39
  default_config :require_ansible_repo, true
40
40
  default_config :enable_yum_epel, false
41
41
  default_config :extra_vars, {}
42
+ default_config :extra_vars_file, nil
42
43
  default_config :env_vars, {}
43
44
  default_config :tags, []
44
45
  default_config :ansible_apt_repo, 'ppa:ansible/ansible'
@@ -747,11 +747,15 @@ module Kitchen
747
747
  bash_vars = config[:attributes][:extra_vars]
748
748
  end
749
749
 
750
- return nil if bash_vars.none?
751
- bash_vars = JSON.dump(bash_vars)
752
- bash_vars = "-e '#{bash_vars}'"
753
- debug(bash_vars)
754
- bash_vars
750
+ return nil if bash_vars.none? and config[:extra_vars_file].nil?
751
+ if !bash_vars.none?
752
+ bash_extra_vars = JSON.dump(bash_vars)
753
+ else
754
+ bash_extra_vars = "\@#{config[:extra_vars_file]}"
755
+ end
756
+ bash_extra_vars = "-e '#{bash_extra_vars}'"
757
+ debug(bash_extra_vars)
758
+ bash_extra_vars
755
759
  end
756
760
 
757
761
  def tags
@@ -57,6 +57,7 @@ chef_bootstrap_url | `https://www.getchef.com/chef/install.sh` | The Chef instal
57
57
  enable_yum_epel | false | Enable the `yum` EPEL repo
58
58
  env_vars | Hash.new | Hash to set environment variable to use with `ansible-playbook` command
59
59
  extra_vars | Hash.new | Hash to set the `extra_vars` passed to `ansible-playbook` command
60
+ extra_vars_file | nil | file containing environment variables e.g. `private_vars/production.yml site.yml` Only if extra_vars not specified. Don't prefix with a @ sign.
60
61
  filter_plugins_path | filter_plugins | Ansible repo `filter_plugins` directory
61
62
  group_vars_path | group_vars | Ansible repo group_vars directory
62
63
  host_vars_path | host_vars | Ansible repo hosts 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.45.10
4
+ version: 0.46.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: 2017-02-14 00:00:00.000000000 Z
11
+ date: 2017-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubyforge_project: "[none]"
133
- rubygems_version: 2.2.2
133
+ rubygems_version: 2.4.5.1
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: ansible provisioner for test-kitchen