kitchen-ansible 0.45.5 → 0.45.6

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: 838f04b6321b4fd0f2f4ac3db1c4ee31ad62ead3
4
- data.tar.gz: 239581647b00fbc9a117f55b4e7bf43efc65e286
3
+ metadata.gz: 84ca3502a66c6a73c3965417ae50471a8b084531
4
+ data.tar.gz: b06413ac66bc9d9695ef648c30347654b104b001
5
5
  SHA512:
6
- metadata.gz: 065f7eb5d596915ef94dc5aebf993e01254c15617e65e07cfb47bf49596358031fd9475dba25d0bc1eb26f195467fabc94c4c498dd4fdf2939278208200558e8
7
- data.tar.gz: 7298102bffd0bd132d4ba291db49a2eada0741d303bb4657446e7553a3c5289758e663305ae1e9f35d2535a8034cdc852022cfa1e16c46ea1d37d92d3136ef95
6
+ metadata.gz: adc60abbbcf2760ef933d72093fdacd685ce900cb04ab9109203ad006fc5bcdc2ab6232f962b8635dd53d3c14e6ed401e1f92f05f935540c0aedcf7f7e30c2ab
7
+ data.tar.gz: 66fadf0cc98349adc63f6e8e1ec75c9f78ac87432d4a2837bdf26f146fcfba06e9f828e176492a9f4f2353642eba76660c4add94bf895a6e88260d708efc34d9
data/README.md CHANGED
@@ -24,6 +24,16 @@ gem install kitchen-ansible
24
24
  gem install kitchen-vagrant
25
25
  ```
26
26
 
27
+ ## Resources
28
+ * https://blog.superk.org/home/ansible-role-development
29
+ * http://razorconsulting.com.au/integration-testing-using-ansible-and-test-kitchen.html
30
+ * https://readme.fr/continuous-integration-for-ansible/
31
+ * https://dantehranian.wordpress.com/2015/06/18/testing-ansible-roles-with-test-kitchen
32
+ * http://www.slideshare.net/MartinEtmajer/testing-ansible-roles-with-test-kitchen-serverspec-and-rspec-48185017
33
+ * http://blog.el-chavez.me/2016/02/16/ansible-galaxy-test-kitchen
34
+ * https://werner-dijkerman.nl/2015/08/20/using-test-kitchen-with-docker-and-serverspec-to-test-ansible-roles
35
+ * https://books.google.co.uk/books?id=D-wmDQAAQBAJ&pg=PA129&lpg
36
+
27
37
  ## Example .kitchen.yml file
28
38
 
29
39
  Based on the [Tomcat Standalone](https://github.com/ansible/ansible-examples/tree/master/tomcat-standalone) example:
@@ -66,9 +76,9 @@ In `.kitchen.yml` set:
66
76
 
67
77
  See the [Ansible Windows repo](https://github.com/neillturner/ansible_windows_repo) example.
68
78
 
69
- ## Using Roles from Ansible Galaxy
79
+ ## Using Roles from Ansible Galaxy
70
80
 
71
- Roles can be used from the Ansible Galaxy using two methods:
81
+ Roles can be used from the Ansible Galaxy using two methods:
72
82
 
73
83
  1. Specify a `requirements.yml` file in your Ansible repository. For more details see [here](http://docs.ansible.com/ansible/galaxy.html).
74
84
 
@@ -79,7 +89,7 @@ Roles can be used from the Ansible Galaxy using two methods:
79
89
  To use a single ~/.kitchen/config.yml file with multiple reposities by setting the WORKSPACE environment variable:
80
90
 
81
91
  ```yaml
82
- role_path: <%= ENV['WORKSPACE'] %>/roles
92
+ role_path: <%= ENV['WORKSPACE'] %>/roles
83
93
  ```
84
94
 
85
95
  You can easily skip previous instructions and jump directly to the broken statement you just fixed by passing an environment variable. Add the following to your `.kitchen.yml`:
@@ -87,12 +87,10 @@ module Kitchen
87
87
  if [ ! $(which ansible) ]; then
88
88
  if [ -f /etc/fedora-release ]; then
89
89
  #{Kitchen::Provisioner::Ansible::Os::Fedora.new('fedora', config).install_command}
90
+ elif [ `grep -q 'Amazon Linux' /etc/system-release` ]; then
91
+ #{Kitchen::Provisioner::Ansible::Os::Amazon.new('amazon', config).install_command}
90
92
  elif [ -f /etc/centos-release ] || [ -f /etc/redhat-release ]; then
91
- if [ -z `grep -q 'Amazon Linux' /etc/system-release` ]; then
92
93
  #{Kitchen::Provisioner::Ansible::Os::Redhat.new('redhat', config).install_command}
93
- else
94
- #{Kitchen::Provisioner::Ansible::Os::Amazon.new('amazon', config).install_command}
95
- fi
96
94
  elif [ -f /etc/SuSE-release ] || [ -f /etc/SUSE-brand ]; then
97
95
  #{Kitchen::Provisioner::Ansible::Os::Suse.new('suse', config).install_command}
98
96
  elif [[ "$OSTYPE" == "darwin"* ]]; then
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module Kitchen
3
3
  module Ansible
4
- VERSION = '0.45.5'
4
+ VERSION = '0.45.6'
5
5
  end
6
6
  end
@@ -68,6 +68,7 @@ ignore_paths_from_root | [] | allow extra paths to be ignored when copying from
68
68
  kerberos_conf_file | | Path of krb5.conf file using in Windows support
69
69
  library_plugins_path | library | Ansible repo library plugins directory
70
70
  lookup_plugins_path | lookup_plugins | Ansible repo `lookup_plugins` directory
71
+ max_retries | 1 | maximum number of retry attempts of converge command
71
72
  modules_path | | Ansible repo manifests directory
72
73
  no_proxy | nil | List of URLs or IPs that should be excluded from proxying
73
74
  playbook | default.yml | Playbook for `ansible-playbook` to run
@@ -82,12 +83,14 @@ require_pip | false | Set to `true` if Ansible is to be installed through `pip`)
82
83
  require_ruby_for_busser | false | Install Ruby to run Busser for tests
83
84
  require_windows_support | false | Install [Windows support](http://docs.ansible.com/ansible/intro_windows.html)
84
85
  requirements_path | | Path to Ansible Galaxy requirements
86
+ retry_on_exit_code | [] | Array of exit codes to retry converge command against
85
87
  role_name | | use when the repo name does not match the name the role is published as.
86
88
  roles_path | roles | Ansible repo roles directory
87
89
  shell_command | 'sh' | Shell command to use, usually an alias for bash. may need to set to bash.
88
90
  ssh_known_hosts | | List of hosts that should be added to ~/.ssh/known_hosts
89
91
  sudo_command | sudo -E | `sudo` command; change to `sudo -E -H` to be consistent with Ansible
90
92
  update_package_repos | true | Update OS repository metadata
93
+ wait_for_retry | 30 | number of seconds to wait before retrying converge command
91
94
 
92
95
  ## Configuring Provisioner Options
93
96
 
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.45.5
4
+ version: 0.45.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neill Turner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-07 00:00:00.000000000 Z
11
+ date: 2016-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen