kitchen-ansible 0.0.17 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,92 +1,93 @@
1
-
2
- # Provisioner Options
3
-
4
- key | default value | Notes
5
- ----|---------------|--------
6
- ansible_version | "latest"| desired version, affects apt installs
7
- ansible_platform | naively tries to determine | OS platform of server
8
- require_ansible_repo | true | Set if using a ansible install from yum or apt repo
9
- ansible_apt_repo | "ppa:ansible/ansible" | apt repo. see https://launchpad.net /~ansible/+archive/ubuntu/ansible or rquillo/ansible
10
- ansible_yum_repo | https://download.fedoraproject.org /pub/epel/6/i386/epel-release-6-8.noarch.rpm | yum repo
11
- roles_path | roles | ansible repo roles directory
12
- group_vars_path | group_vars | ansible repo group_vars directory
13
- host_vars_path | host_vars | ansible repo hosts directory
14
- filter_plugins | filter_plugins | ansible repo filter_plugins directory
15
- additional_copy_path | | arbitrary array of files and directories to copy into test environment, relative to CWD. (eg, vars or included playbooks)
16
- extra_vars | Hash.new | Hash to set the extra_vars passed to ansibile-playbook command
17
- playbook | 'default.yml' | playbook for ansible-playbook to run
18
- modules_path | | ansible repo manifests directory
19
- ansible_verbose| false| Extra information logging
20
- ansible_verbosity| 1| Sets the verbosity flag appropriately (e.g.: `1 => '-v', 2 => '-vv', 3 => '-vvv" ...`) Valid values are one of: `1, 2, 3, 4` OR `:info, :warn, :debug, :trace`.
21
- ansible_check| false| Sets the `--check` flag when running Ansible
22
- ansible_diff| false| Sets the `--diff` flag when running Ansible
23
- update_package_repos| true| update OS repository metadata
24
- require_ruby_for_busser|true|install ruby to run busser for tests
25
- ansiblefile_path | | Path to Ansiblefile
26
- requirements_path | | Path to ansible-galaxy requirements
27
- ansible_vault_password_file| | Path of Ansible Vault Password File
28
- require_ansible_omnibus | false | Set if using omnibus ansible install
29
- ansible_omnibus_url | | omnibus ansible install location.
30
- ansible_omnibus_remote_path | "/opt/ansible" | Server Installation location of an omnibus ansible install.
31
- require_chef_for_busser|false|install chef to run busser for tests. NOTE: kitchen 1.4 only requires ruby to run busser so this is not required.
32
- chef_bootstrap_url |https://www.getchef.com /chef/install.sh| the chef install
33
-
34
- ## Configuring Provisioner Options
35
-
36
- 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:
37
-
38
- ```yaml
39
- ---
40
- driver:
41
- name: vagrant
42
-
43
- provisioner:
44
- name: ansible_playbook
45
- roles_path: roles
46
- hosts: tomcat-servers
47
- require_ansible_repo: true
48
- ansible_verbose: true
49
- ansible_verbosity: 2
50
- ansible_diff: true
51
-
52
- platforms:
53
- - name: nocm_ubuntu-12.04
54
- driver_plugin: vagrant
55
- driver_config:
56
- box: nocm_ubuntu-12.04
57
- box_url: http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box
58
-
59
- suites:
60
- - name: default
61
- ```
62
-
63
- **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
64
-
65
- ```yaml
66
- verifier:
67
- ruby_bindir: '/usr/bin'
68
- ```
69
- where /usr/bin is the location of the ruby command.
70
-
71
-
72
- 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
73
-
74
- To override a setting at the suite-level, specify the setting name under the suite's attributes:
75
-
76
- ```yaml
77
- suites:
78
- - name: server
79
- attributes:
80
- extra_vars:
81
- server_installer_url: http://downloads.app.com/v1.0
82
- tags:
83
- - server
84
- ```
85
-
86
- ### Per-suite Structure
87
-
88
- It can be beneficial to keep different Ansible layouts for different suites. Rather than having to specify the roles, modules, etc for each suite, you can create the following directory structure and they will automatically be found:
89
-
90
- $kitchen_root/ansible/$suite_name/roles
91
- $kitchen_root/ansible/$suite_name/modules
92
- $kitchen_root/ansible/$suite_name/Ansiblefile
1
+
2
+ # Provisioner Options
3
+
4
+ key | default value | Notes
5
+ ----|---------------|--------
6
+ ansible_version | "latest"| desired version, affects apt installs
7
+ ansible_platform | naively tries to determine | OS platform of server
8
+ require_ansible_repo | true | Set if using a ansible install from yum or apt repo
9
+ ansible_apt_repo | "ppa:ansible/ansible" | apt repo. see https://launchpad.net /~ansible/+archive/ubuntu/ansible or rquillo/ansible
10
+ ansible_yum_repo | https://download.fedoraproject.org /pub/epel/6/i386/epel-release-6-8.noarch.rpm | yum repo
11
+ roles_path | roles | ansible repo roles directory
12
+ group_vars_path | group_vars | ansible repo group_vars directory
13
+ host_vars_path | host_vars | ansible repo hosts directory
14
+ filter_plugins | filter_plugins | ansible repo filter_plugins directory
15
+ additional_copy_path | | arbitrary array of files and directories to copy into test environment, relative to CWD. (eg, vars or included playbooks)
16
+ extra_vars | Hash.new | Hash to set the extra_vars passed to ansibile-playbook command
17
+ playbook | 'default.yml' | playbook for ansible-playbook to run
18
+ modules_path | | ansible repo manifests directory
19
+ ansible_verbose| false| Extra information logging
20
+ ansible_verbosity| 1| Sets the verbosity flag appropriately (e.g.: `1 => '-v', 2 => '-vv', 3 => '-vvv" ...`) Valid values are one of: `1, 2, 3, 4` OR `:info, :warn, :debug, :trace`.
21
+ ansible_check| false| Sets the `--check` flag when running Ansible
22
+ ansible_diff| false| Sets the `--diff` flag when running Ansible
23
+ update_package_repos| true| update OS repository metadata
24
+ require_ruby_for_busser|true|install ruby to run busser for tests
25
+ ansiblefile_path | | Path to Ansiblefile
26
+ requirements_path | | Path to ansible-galaxy requirements
27
+ ansible_vault_password_file| | Path of Ansible Vault Password File
28
+ require_ansible_omnibus | false | Set if using omnibus ansible install
29
+ ansible_omnibus_url | | omnibus ansible install location.
30
+ ansible_omnibus_remote_path | "/opt/ansible" | Server Installation location of an omnibus ansible install.
31
+ require_chef_for_busser|false|install chef to run busser for tests. NOTE: kitchen 1.4 only requires ruby to run busser so this is not required.
32
+ chef_bootstrap_url |https://www.getchef.com /chef/install.sh| the chef install
33
+ 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.
34
+
35
+ ## Configuring Provisioner Options
36
+
37
+ 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:
38
+
39
+ ```yaml
40
+ ---
41
+ driver:
42
+ name: vagrant
43
+
44
+ provisioner:
45
+ name: ansible_playbook
46
+ roles_path: roles
47
+ hosts: tomcat-servers
48
+ require_ansible_repo: true
49
+ ansible_verbose: true
50
+ ansible_verbosity: 2
51
+ ansible_diff: true
52
+
53
+ platforms:
54
+ - name: nocm_ubuntu-12.04
55
+ driver_plugin: vagrant
56
+ driver_config:
57
+ box: nocm_ubuntu-12.04
58
+ box_url: http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box
59
+
60
+ suites:
61
+ - name: default
62
+ ```
63
+
64
+ **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
65
+
66
+ ```yaml
67
+ verifier:
68
+ ruby_bindir: '/usr/bin'
69
+ ```
70
+ where /usr/bin is the location of the ruby command.
71
+
72
+
73
+ 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
74
+
75
+ To override a setting at the suite-level, specify the setting name under the suite's attributes:
76
+
77
+ ```yaml
78
+ suites:
79
+ - name: server
80
+ attributes:
81
+ extra_vars:
82
+ server_installer_url: http://downloads.app.com/v1.0
83
+ tags:
84
+ - server
85
+ ```
86
+
87
+ ### Per-suite Structure
88
+
89
+ It can be beneficial to keep different Ansible layouts for different suites. Rather than having to specify the roles, modules, etc for each suite, you can create the following directory structure and they will automatically be found:
90
+
91
+ $kitchen_root/ansible/$suite_name/roles
92
+ $kitchen_root/ansible/$suite_name/modules
93
+ $kitchen_root/ansible/$suite_name/Ansiblefile
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.17
4
+ version: 0.0.19
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-06-12 00:00:00.000000000 Z
11
+ date: 2015-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  requirements: []
124
124
  rubyforge_project: "[none]"
125
- rubygems_version: 2.2.3
125
+ rubygems_version: 2.2.2
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: ansible provisioner for test-kitchen