kitchen-ansible 0.45.10 → 0.46.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24e506b16b7566a6c179b3ba75f7bf0a49d932d9
|
4
|
+
data.tar.gz: 45e03baef7f9bb872622f085ce5a72488900d9b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 402e8bff85a9b3c8a130cb314d466609558aa4c43073e8fb77d3096680d33772a0eaf58dccb24c7d07b82268d1bf523343cbb811b58143a7eedf6db2ae4e70f2
|
7
|
+
data.tar.gz: dc54f9033f6118c5af36d7b76ac500e209a5d0b59c39fbce9903cc1059b773773513afe37f6a8b4cb2617673281193641a1272903d777dc326cc4b2c10db6ee1
|
@@ -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
|
752
|
-
|
753
|
-
|
754
|
-
|
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
|
data/provisioner_options.md
CHANGED
@@ -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.
|
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-
|
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.
|
133
|
+
rubygems_version: 2.4.5.1
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: ansible provisioner for test-kitchen
|