-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.cloud.yml
84 lines (73 loc) · 1.97 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
---
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-ntp
<% 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: 4
provisioner:
name: ansible_playbook
hosts: ntp
sudo_command: sudo -E -H
role_name: ntp
require_ansible_repo: false
require_ansible_source: true
require_ansible_omnibus: true
require_chef_for_busser: false
require_ruby_for_busser: false
ansible_verbose: false
ansible_verbosity: warn
idempotency_test: true
verifier:
name: shell
suites:
- name: ntp
provisioner:
playbook: tests/ntp.yml
verifier:
command: PLAYBOOK=tests/ntp.yml bundle exec rspec -c -I serverspec
- name: verson-centos
provisioner:
playbook: tests/version-centos.yml
verifier:
command: PLAYBOOK=tests/version-centos.yml bundle exec rspec -c -I serverspec
includes:
- centos-7
- name: verson-debian
provisioner:
playbook: tests/version-debian.yml
verifier:
command: PLAYBOOK=tests/version-debian.yml bundle exec rspec -c -I serverspec
includes:
- debian-8
- ubuntu-14.04
# 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