kitchen-ansible 0.0.33 → 0.0.34

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ ansible_platform | naively tries to determine | OS platform of server
9
9
  require_ansible_repo | true | Set if using a ansible install from yum or apt repo
10
10
  ansible_apt_repo | "ppa:ansible/ansible" | apt repo. see https://launchpad.net /~ansible/+archive/ubuntu/ansible or rquillo/ansible
11
11
  ansible_yum_repo | https://download.fedoraproject.org /pub/epel/6/i386/ epel-release-6-8.noarch.rpm | yum repo RH/Centos6
12
- _for RH/Centos7 change to_ | http://dl.fedoraproject.org /pub/epel/7/x86_64/e/ epel-release-7-5.noarch.rpm |
12
+ _for RH/Centos7 is | http://dl.fedoraproject.org /pub/epel/7/x86_64/e/ epel-release-7-5.noarch.rpm |
13
13
  ansible_binary_path | NULL | If specified this will override the location where kitchen tries to run ansible-playbook from. ie: (ansible_binary_path: /usr/local/bin )
14
14
  enable_yum_epel | false | enable yum EPEL repo
15
15
  ansible_sles_repo | http://download.opensuse.org/repositories /systemsmanagement/SLE_12 /systemsmanagement.repo | zypper suse ansible repo
@@ -39,15 +39,19 @@ update_package_repos| true| update OS repository metadata
39
39
  ansiblefile_path | | Path to Ansiblefile
40
40
  requirements_path | | Path to ansible-galaxy requirements
41
41
  ansible_vault_password_file| | Path of Ansible Vault Password File
42
- ansible_connection | local | Connection for Hosts and Groups
42
+ ansible_connection | local | use 'ssh' if host not localhost
43
43
  ansible_inventory_file | hosts | Custom inventory file
44
44
  ansible_extra_flags | '' | Additional options to pass to `ansible-playbook` -- e.g.: `'--skip-tags=redis'`
45
45
  ansible_playbook_command | | Override the ansible playbook command
46
46
  require_ruby_for_busser|false|install ruby to run busser for tests
47
47
  require_chef_for_busser|true|install chef to run busser for tests. NOTE: kitchen 1.4 only requires ruby to run busser so this is not required.
48
48
  chef_bootstrap_url |https://www.getchef.com /chef/install.sh| the chef install
49
- require_ansible_source | false | Install Ansible from source using method described here: http://docs.ansible.com/intro_installation.html#running-from-source. Only works on Debian/Ubuntu at present.
49
+ require_ansible_source | false | Install Ansible from source using method described here: http://docs.ansible.com/ intro_installation.html#running-from-source. Only works on Debian/Ubuntu at present.
50
50
  ansible_source_rev | | Branch or Tag to install ansible source
51
+ ansible_host_key_checking | true | strict host key checking in ssh
52
+ private_key | | ssh private key file for ssh connection
53
+ set_private_key_permissions | false | set ssh private key file read only permissions
54
+ idempotency_test | false | Enable to test ansible playbook idempotency
51
55
 
52
56
  ## Configuring Provisioner Options
53
57
 
@@ -78,14 +82,28 @@ The provisioner can be configured globally or per suite, global settings act as
78
82
  - name: default
79
83
  ```
80
84
 
81
- **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
85
+ ## Ruby install to run serverspec verify
82
86
 
83
- ```yaml
84
- verifier:
85
- ruby_bindir: '/usr/bin'
87
+ By default test-kitchen installs chef to get a ruby version sutable for run serverspec in the Verify step.
88
+
89
+ Instead ruby can just be installed by specifing the provisioner option:
90
+ ```
91
+ require_ruby_for_busser false
92
+ ```
93
+ And set the verifer section:
86
94
  ```
87
- where /usr/bin is the location of the ruby command.
95
+ verifier:
96
+ name: Busser
97
+ plugin:
98
+ - Ansiblespec
99
+ ruby_bindir: '/usr/bin'
100
+ ```
101
+ and create a Gemfile to add additionl ruby gems in directory test/integration/default/ansiblespec
102
+ ```
103
+ source 'https://rubygems.org'
88
104
 
105
+ gem 'rake'
106
+ ```
89
107
 
90
108
  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 default manifest site.yml
91
109
 
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.33
4
+ version: 0.0.34
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-12-05 00:00:00.000000000 Z
11
+ date: 2015-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -100,6 +100,11 @@ files:
100
100
  - lib/kitchen-ansible/version.rb
101
101
  - lib/kitchen/provisioner/ansible/config.rb
102
102
  - lib/kitchen/provisioner/ansible/librarian.rb
103
+ - lib/kitchen/provisioner/ansible/os.rb
104
+ - lib/kitchen/provisioner/ansible/os/amazon.rb
105
+ - lib/kitchen/provisioner/ansible/os/debian.rb
106
+ - lib/kitchen/provisioner/ansible/os/redhat.rb
107
+ - lib/kitchen/provisioner/ansible/os/suse.rb
103
108
  - lib/kitchen/provisioner/ansible_playbook.rb
104
109
  - provisioner_options.md
105
110
  homepage: https://github.com/neillturner/kitchen-ansible