kitchen-ansible 0.48.1 → 0.48.2

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: 32dc95faa58ee424c8b2df63d2d5ab36ef98193a
4
- data.tar.gz: a3a9d816d8b8e3cfe35b583865f1dd1213adad8c
3
+ metadata.gz: 60dae088d65cb223f810daa91cb55c5f61c25e8d
4
+ data.tar.gz: e171d2c56f74b2da08a75d25fce143815cf26ad9
5
5
  SHA512:
6
- metadata.gz: 30defbb48539f3b7581d554567a3dccfc703978f8aff7643326a2553d612be5a825e74ae468e277eb51130754b18ddc6d790779015b7ba1f3a537133025e8519
7
- data.tar.gz: d61220f1fef0af00d92d464774cf7f5e310a9978144ac265d012bb5ec7d9fb06ec1a4d2997e42ae4375ac9d9bfebed0797d4d1ace1933397bebd081a85f47c27
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 workstations (for windows see https://rubyinstaller.org/downloads/)
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:
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module Kitchen
3
3
  module Ansible
4
- VERSION = '0.48.1'.freeze
4
+ VERSION = '0.48.2'.freeze
5
5
  end
6
6
  end
@@ -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
@@ -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.1
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: 2017-11-12 00:00:00.000000000 Z
11
+ date: 2018-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec