forked from mdsol/mesos_cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.ec2.yml
109 lines (105 loc) · 2.42 KB
/
.kitchen.ec2.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
# This configuration uses the kitchen-ec2 plugin
# https://github.com/test-kitchen/kitchen-ec2
#
# The following environmental variables are required:
# - AWS_ACCESS_KEY_ID
# - AWS_SECRET_ACCESS_KEY
# - AWS_SSH_KEY_ID
# - AWS_SUBNET_ID
# - AWS_SECURITY_GROUP_ID
#
# Please make sure the default VPC security group
# for the given subnet id allows inbound SSH.
---
driver:
name: ec2
region: us-west-2
instance_type: t2.micro # AWS Free Tier
associate_public_ip: true
subnet_id: <%= ENV['AWS_SUBNET_ID'] %>
security_group_ids: ["<%= ENV['AWS_SECURITY_GROUP_ID'] %>"]
tags:
Name: 'test-kitchen mesos-cookbook <%= Time.now.strftime("%d/%m/%Y %H:%M") %>'
busser:
sudo: true
provisioner:
name: chef_zero
require_chef_omnibus: 12.5.1
platforms:
- name: amazon-2016.09.0
run_list:
- recipe[yum]
driver:
image_id: ami-b04e92d0
transport:
username: ec2-user
# https://cloud-images.ubuntu.com/locator/ec2/
- name: ubuntu-16.04
run_list:
- recipe[apt]
- recipe[curl]
driver:
image_id: ami-a9d276c9
- name: ubuntu-15.10
run_list:
- recipe[apt]
- recipe[curl]
driver:
image_id: ami-1863a178
- name: ubuntu-14.04
run_list:
- recipe[apt]
- recipe[curl]
driver:
image_id: ami-01f05461
- name: ubuntu-12.04
run_list:
- recipe[apt]
- recipe[curl]
driver:
image_id: ami-adcd69cd
# https://wiki.debian.org/Cloud/AmazonEC2Image
- name: debian-8.6
run_list:
- recipe[apt]
- recipe[curl]
driver:
image_id: ami-4e1cc32e
# https://wiki.centos.org/Cloud/AWS
- name: centos-7
run_list:
- recipe[yum]
driver:
image_id: ami-d2c924b2
block_device_mappings:
- device_name: /dev/sda1
ebs: {volume_type: gp2, delete_on_termination: true}
- name: centos-6
run_list:
- recipe[yum]
driver:
image_id: ami-05cf2265
block_device_mappings:
- device_name: /dev/sda1
ebs: {volume_type: gp2, delete_on_termination: true}
suites:
- &default
name: 1-1-0
run_list:
- recipe[mesos::master]
- recipe[mesos::slave]
attributes:
mesos:
slave:
flags:
attributes: 'attribute01:value01;attribute02:value02'
- <<: *default
name: 1-0-1
attributes:
mesos:
version: 1.0.1
- <<: *default
name: 1-0-0
attributes:
mesos:
version: 1.0.0