-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.cloud.yml
173 lines (155 loc) · 4.69 KB
/
.kitchen.cloud.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
---
driver:
name: ec2
aws_ssh_key_id: <%= ENV['AWS_SSH_KEY_ID'] %>
security_group_ids: [ "<%= ENV['AWS_SGROUP_ID'] %>" ]
region: <%= ENV['AWS_REGION'] %>
availability_zone: <% ENV['AWS_AVAILABILITY_ZONE'] %>
instance_type: <%= ENV['AWS_INSTANCE_TYPE'] || 't2.micro' %>
associate_public_ip: true
require_chef_omnibus: false
tags:
'ansible-role': ansible-role-docker
<% if ENV['AWS_SUBNET'] %>
subnet_id: <%= ENV['AWS_SUBNET'] %>
<% end %>
<% if ENV['AWS_IAM_PROFILE'] %>
iam_profile_name: <%= ENV['AWS_IAM_PROFILE'] %>
<% end %>
transport:
ssh_key: <%= ENV['KITCHEN_SSH_KEY'] %>
connection_timeout: 120
connection_retries: 10
max_ssh_sessions: 2
provisioner:
name: ansible_playbook
hosts: docker-hosts
role_name: docker-engine
require_ansible_repo: false
require_ansible_omnibus: false
require_chef_for_busser: false
require_ruby_for_busser: false
# disabled omnibus and switched to pip install to workaround python-six related
# dependency issues on Ubuntu 14.04
require_pip: true
ansible_version: 2.3.0
ansible_verbose: false
ansible_verbosity: warn
idempotency_test: true
verifier:
name: shell
suites:
- name: latest
provisioner:
playbook: tests/vagrant/latest.yml
verifier:
command: PLAYBOOK=tests/vagrant/latest.yml bundle exec rspec -c -f d -I serverspec
- name: ce-engine
provisioner:
playbook: tests/cloud/ce-engine.yml
verifier:
command: PLAYBOOK=tests/cloud/ce-engine.yml bundle exec rspec -c -f d -I serverspec
- name: py-pkg
excludes:
- ubuntu-14.04
provisioner:
playbook: tests/cloud/py-pkg.yml
verifier:
command: PLAYBOOK=tests/cloud/py-pkg.yml bundle exec rspec -c -f d -I serverspec
- name: storage-aufs
excludes:
- centos-7
provisioner:
playbook: tests/cloud/storage-aufs.yml
verifier:
command: PLAYBOOK=tests/cloud/storage-aufs.yml bundle exec rspec -c -I serverspec
# The suite block_device_mappings overwrite the platform configuration. To allow for the /dev/sda1
# volume to be deleted under, it must be configured under suites. This forces the creation of an
# additional suite when using the ec2 driver
- name: storage-btrfs-centos
excludes:
- debian-8
- ubuntu-14.04
- ubuntu-16.04
driver:
block_device_mappings:
- device_name: /dev/sda1
ebs:
volume_type: standard
volume_size: 8
delete_on_termination: true
- device_name: /dev/xvdb
ebs:
volume_type: standard
volume_size: 1
delete_on_termination: true
provisioner:
playbook: tests/cloud/storage-btrfs.yml
verifier:
command: PLAYBOOK=tests/cloud/storage-btrfs.yml bundle exec rspec -c -f d -I serverspec
- name: storage-btrfs-debian
excludes:
- centos-7
driver:
block_device_mappings:
- device_name: /dev/xvdb
ebs:
volume_type: standard
volume_size: 1
delete_on_termination: true
provisioner:
playbook: tests/cloud/storage-btrfs.yml
verifier:
command: PLAYBOOK=tests/cloud/storage-btrfs.yml bundle exec rspec -c -f d -I serverspec
- name: storage-devicemapper
excludes:
- debian-8
- ubuntu-14.04
- ubuntu-16.04
driver:
block_device_mappings:
- device_name: /dev/sda1
ebs:
volume_type: standard
volume_size: 8
delete_on_termination: true
- device_name: /dev/xvdb
ebs:
volume_type: standard
volume_size: 1
delete_on_termination: true
provisioner:
playbook: tests/cloud/storage-devicemapper.yml
verifier:
command: PLAYBOOK=tests/cloud/storage-devicemapper.yml bundle exec rspec -c -f d -I serverspec
- name: storage-legacy-overlay
excludes:
- debian-8
- ubuntu-14.04
provisioner:
playbook: tests/cloud/storage-legacy-overlay.yml
verifier:
command: PLAYBOOK=tests/cloud/storage-legacy-overlay.yml bundle exec rspec -c -f d -I serverspec
- name: storage-overlay2
excludes:
- debian-8
- ubuntu-14.04
- centos-7
provisioner:
playbook: tests/cloud/storage-overlay2.yml
verifier:
command: PLAYBOOK=tests/cloud/storage-overlay2.yml bundle exec rspec -c -f d -I serverspec
# Default for centos-7 image is to persist the root volume.
# The below overrides that.
platforms:
- name: centos-7
driver:
block_device_mappings:
- device_name: /dev/sda1
ebs:
volume_type: standard
volume_size: 8
delete_on_termination: true
- name: debian-8
- name: ubuntu-14.04
- name: ubuntu-16.04