kitchen-ansible 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/lib/kitchen-ansible/version.rb +1 -1
- data/lib/kitchen/provisioner/ansible_playbook.rb +6 -3
- data/provisioner_options.md +13 -2
- 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: 4ac89415331c2a0fa7949888fe368bb0d18cf26e
|
4
|
+
data.tar.gz: c1e2f6e1e84231e1f75f30ab4f3562e6523905ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb9713bb088897ab10cbf0189862bf8cf30a55591aa318ff66030dfd8f746f9f4aa8df0f3bad5e55860d601aeced3c2249391b008667f1bc4412df6739c62855
|
7
|
+
data.tar.gz: 8876e39e61831b33cc314f9fcfd36cee3e8544774f4d2fc246d922374922d47c0fe77e190a1e1cfabba3a59358f14105d49d05c7595cb6c3e4d1e4acd9be5821
|
data/README.md
CHANGED
@@ -80,6 +80,15 @@ Create a `.kitchen.yml`, much like one the described above:
|
|
80
80
|
- name: default
|
81
81
|
```
|
82
82
|
|
83
|
+
**NOTE:** With Test-Kitchen 1.4 you not longer need chef install to run the tests. You just need ruby installed version 1.9 or higher and also add to the .kitchen.yml file
|
84
|
+
|
85
|
+
```yaml
|
86
|
+
verifier:
|
87
|
+
ruby_bindir: '/usr/bin'
|
88
|
+
```
|
89
|
+
where /usr/bin is the location of the ruby command.
|
90
|
+
|
91
|
+
|
83
92
|
Then for serverspec:
|
84
93
|
|
85
94
|
```bash
|
@@ -643,9 +643,12 @@ module Kitchen
|
|
643
643
|
end
|
644
644
|
|
645
645
|
def prepare_ansible_vault_password_file
|
646
|
-
|
647
|
-
|
648
|
-
|
646
|
+
if ansible_vault_password_file
|
647
|
+
info('Preparing ansible vault password')
|
648
|
+
debug("Copying ansible vault password file from #{ansible_vault_password_file} to #{tmp_ansible_vault_password_file_path}")
|
649
|
+
|
650
|
+
FileUtils.cp(ansible_vault_password_file, tmp_ansible_vault_password_file_path)
|
651
|
+
end
|
649
652
|
end
|
650
653
|
|
651
654
|
def resolve_with_librarian
|
data/provisioner_options.md
CHANGED
@@ -25,7 +25,7 @@ ansible_verbosity| 1| Sets the verbosity flag appropriately (e.g.: `1 => '-v', 2
|
|
25
25
|
ansible_check| false| Sets the `--check` flag when running Ansible
|
26
26
|
ansible_diff| false| Sets the `--diff` flag when running Ansible
|
27
27
|
update_package_repos| true| update OS repository metadata
|
28
|
-
chef_bootstrap_url |"https://www.getchef.com/chef/install.sh"| the chef (needed for busser to run tests)
|
28
|
+
chef_bootstrap_url |"https://www.getchef.com/chef/install.sh"| the chef (needed for busser to run tests) NOTE: kitchen 1.4 only requires ruby to run busser so this is not required.
|
29
29
|
ansiblefile_path | | Path to Ansiblefile
|
30
30
|
requirements_path | | Path to ansible-galaxy requirements
|
31
31
|
ansible_vault_password_file| | Path of Ansible Vault Password File
|
@@ -34,6 +34,7 @@ ansible_vault_password_file| | Path of Ansible Vault Password File
|
|
34
34
|
|
35
35
|
The provisioner can be configured globally or per suite, global settings act as defaults for all suites, you can then customise per suite, for example:
|
36
36
|
|
37
|
+
```yaml
|
37
38
|
---
|
38
39
|
driver:
|
39
40
|
name: vagrant
|
@@ -56,12 +57,22 @@ The provisioner can be configured globally or per suite, global settings act as
|
|
56
57
|
|
57
58
|
suites:
|
58
59
|
- name: default
|
60
|
+
```
|
61
|
+
|
62
|
+
**NOTE:** With Test-Kitchen 1.4 you not longer need chef install to run the tests. You just need ruby installed version 1.9 or higher and also add to the .kitchen.yml file
|
63
|
+
|
64
|
+
```yaml
|
65
|
+
verifier:
|
66
|
+
ruby_bindir: '/usr/bin'
|
67
|
+
```
|
68
|
+
where /usr/bin is the location of the ruby command.
|
59
69
|
|
60
70
|
|
61
71
|
in this example, vagrant will download a box for ubuntu 1204 with no configuration management installed, then install the latest ansible and ansible playbook against a ansible repo from the /repository/ansible_repo directory using the defailt manifest site.yml
|
62
72
|
|
63
73
|
To override a setting at the suite-level, specify the setting name under the suite's attributes:
|
64
74
|
|
75
|
+
```yaml
|
65
76
|
suites:
|
66
77
|
- name: server
|
67
78
|
attributes:
|
@@ -69,7 +80,7 @@ To override a setting at the suite-level, specify the setting name under the sui
|
|
69
80
|
server_installer_url: http://downloads.app.com/v1.0
|
70
81
|
tags:
|
71
82
|
- server
|
72
|
-
|
83
|
+
```
|
73
84
|
|
74
85
|
### Per-suite Structure
|
75
86
|
|
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.0.
|
4
|
+
version: 0.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neill Turner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|