kitchen-ansible 0.48.1 → 0.48.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -2
- data/lib/kitchen-ansible/version.rb +1 -1
- data/lib/kitchen/provisioner/ansible/config.rb +1 -0
- data/lib/kitchen/provisioner/ansible_playbook.rb +1 -1
- data/provisioner_options.md +1 -0
- 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: 60dae088d65cb223f810daa91cb55c5f61c25e8d
|
4
|
+
data.tar.gz: e171d2c56f74b2da08a75d25fce143815cf26ad9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45dbb41ea30f3eff11d8dfb670baf67f3be8c2da20bd40cb2d3e19f560832effd222c64e330038119e0b24a987fb63c34ccad25ea2d833a0f0267d2f6c917f4e
|
7
|
+
data.tar.gz: b522786d6078d0ac96c471667428592c9a9455642800ef08cbbff243814776754fcf392e6d41be9bc866a58eace8b1d9e575513715536c290b5bcdeb20cd0b55
|
data/README.md
CHANGED
@@ -18,19 +18,21 @@ It has been tested against the Ubuntu 12.04/14.04/16.04, Centos 6/7 and Debian 6
|
|
18
18
|
|
19
19
|
## Installation & Setup
|
20
20
|
|
21
|
-
1. install the latest Ruby on your
|
21
|
+
1. install the latest Ruby on your workstation (for windows see https://rubyinstaller.org/downloads/)
|
22
22
|
|
23
23
|
2. If using Ruby version less than 2.3 first install earlier version of test-kitchen
|
24
24
|
```
|
25
25
|
gem install test-kitchen -v 1.16.0
|
26
26
|
```
|
27
|
-
3. Install the `kitchen-ansible` gem in your system, along with [kitchen-vagrant](https://github.com/test-kitchen/kitchen-vagrant) or [kitchen-docker](https://github.com/test-kitchen/kitchen-docker) or any other suitable driver:
|
27
|
+
3. Install the `kitchen-ansible` gem in your system, along with [kitchen-vagrant](https://github.com/test-kitchen/kitchen-vagrant) or [kitchen-docker](https://github.com/test-kitchen/kitchen-docker) or any other suitable driver or the exec driver to run from your workstation:
|
28
28
|
|
29
29
|
```
|
30
30
|
gem install kitchen-ansible
|
31
31
|
gem install kitchen-vagrant
|
32
32
|
```
|
33
33
|
|
34
|
+
|
35
|
+
|
34
36
|
## Resources
|
35
37
|
* https://blog.superk.org/home/ansible-role-development
|
36
38
|
* http://razorconsulting.com.au/integration-testing-using-ansible-and-test-kitchen.html
|
@@ -89,6 +91,18 @@ In `.kitchen.yml` set:
|
|
89
91
|
|
90
92
|
See the [Ansible Windows repo](https://github.com/neillturner/ansible_windows_repo) example.
|
91
93
|
|
94
|
+
## Test Kitchen Exec Driver
|
95
|
+
|
96
|
+
By using the test-kitchen exec driver ansible can be driven from your workstation. This provides similar functionality to [kitchen-ansiblepush](https://github.com/ahelal/kitchen-ansiblepush). Remote servers, as specified in the ansible inventory, can be built with ansible automatically installed and run from your workstation.
|
97
|
+
|
98
|
+
See example [https://github.com/neillturner/ansible_exec_repo](https://github.com/neillturner/ansible_exec_repo)
|
99
|
+
|
100
|
+
## Ansible AWX
|
101
|
+
|
102
|
+
Kitchen ansible supports installing and using the open source version of Ansible Tower [Ansible AWX](https://github.com/ansible/awx) on a Centos 7. In future it will support the tower-cli for testing.
|
103
|
+
|
104
|
+
See example [https://github.com/neillturner/ansible_awx_repo](https://github.com/neillturner/ansible_awx_repo)
|
105
|
+
|
92
106
|
## Using Roles from Ansible Galaxy
|
93
107
|
|
94
108
|
Roles can be used from the Ansible Galaxy using two methods:
|
@@ -86,6 +86,7 @@ module Kitchen
|
|
86
86
|
default_config :custom_post_install_command, nil
|
87
87
|
default_config :custom_post_play_command, nil
|
88
88
|
default_config :show_command_output, false
|
89
|
+
default_config :ignore_ansible_cfg, false
|
89
90
|
|
90
91
|
default_config :playbook do |provisioner|
|
91
92
|
provisioner.calculate_path('default.yml', :file) ||
|
@@ -962,7 +962,7 @@ module Kitchen
|
|
962
962
|
def prepare_ansible_cfg
|
963
963
|
info('Preparing ansible.cfg file')
|
964
964
|
ansible_config_file = "#{File.join(sandbox_path, 'ansible.cfg')}"
|
965
|
-
if !ansible_cfg_path.nil? && File.exist?(ansible_cfg_path)
|
965
|
+
if !ansible_cfg_path.nil? && File.exist?(ansible_cfg_path) && !config[:ignore_ansible_cfg]
|
966
966
|
info('Found existing ansible.cfg')
|
967
967
|
FileUtils.cp_r(ansible_cfg_path, ansible_config_file)
|
968
968
|
else
|
data/provisioner_options.md
CHANGED
@@ -102,6 +102,7 @@ ssh_known_hosts | | List of hosts that should be added to ~/.ssh/known_hosts
|
|
102
102
|
sudo_command | sudo -E | `sudo` command; change to `sudo -E -H` to be consistent with Ansible
|
103
103
|
update_package_repos | true | Update OS repository metadata
|
104
104
|
wait_for_retry | 30 | number of seconds to wait before retrying converge command
|
105
|
+
ignore_ansible_cfg | false | If true, values from ansible.cfg file will not be loaded.
|
105
106
|
|
106
107
|
## Ansible Inventory
|
107
108
|
|
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.48.
|
4
|
+
version: 0.48.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neill Turner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|