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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c76809e1ae3af15a1af70c8e2a3506592a5a3fa
4
- data.tar.gz: ead9e832b47e8509069250df3b4c76f073894205
3
+ metadata.gz: 4ac89415331c2a0fa7949888fe368bb0d18cf26e
4
+ data.tar.gz: c1e2f6e1e84231e1f75f30ab4f3562e6523905ad
5
5
  SHA512:
6
- metadata.gz: c618628de49ae2e74afbce52a93c09b45f125174fb743e79e009d442d515899cab1ce6ebe71600a1198317a52a5fce9d62d47bc3914203a328b3f277e2e68537
7
- data.tar.gz: da7d1fd5f358c495f082bef1d0c0d0f372123a97c73a69dc686bba5d8d5e499e7e04a5e747af22883eb57ea086c77fa0538246225eef03528f6bca3f63517eef
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
@@ -1,5 +1,5 @@
1
1
  module Kitchen
2
2
  module Ansible
3
- VERSION = "0.0.14"
3
+ VERSION = "0.0.15"
4
4
  end
5
5
  end
@@ -643,9 +643,12 @@ module Kitchen
643
643
  end
644
644
 
645
645
  def prepare_ansible_vault_password_file
646
- info('Preparing ansible vault password')
647
- debug("Copying ansible vault password file from #{ansible_vault_password_file} to #{tmp_ansible_vault_password_file_path}")
648
- FileUtils.cp(ansible_vault_password_file, tmp_ansible_vault_password_file_path)
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
@@ -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.14
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-08 00:00:00.000000000 Z
11
+ date: 2015-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen