forked from mdsol/mesos_cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.kitchen.ec2.yml
109 lines (105 loc) · 2.19 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
#
# Please make sure the default VPC security group
# for the given subnet id allows inbound SSH.
---
driver:
name: ec2
region: us-east-1
instance_type: t2.micro # AWS Free Tier
associate_public_ip: true
subnet_id: <%= ENV['AWS_SUBNET_ID'] %>
tags:
created-by: 'test-kitchen'
launched-by: <%= ENV['USER'] %>
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-2015.09.1
run_list:
- recipe[yum]
driver:
image_id: ami-60b6c60a
transport:
username: ec2-user
# https://cloud-images.ubuntu.com/locator/ec2/
- name: ubuntu-15.04
run_list:
- recipe[apt]
- recipe[curl]
driver:
image_id: ami-2a4d1a40
transport:
username: ubuntu
- name: ubuntu-14.04
run_list:
- recipe[apt]
- recipe[curl]
driver:
image_id: ami-5c207736
transport:
username: ubuntu
- name: ubuntu-12.04
run_list:
- recipe[apt]
- recipe[curl]
driver:
image_id: ami-4505522f
transport:
username: ubuntu
# https://wiki.debian.org/Cloud/AmazonEC2Image
- name: debian-8.1
run_list:
- recipe[apt]
- recipe[curl]
driver:
image_id: ami-116d857a
transport:
username: admin
# https://wiki.centos.org/Cloud/AWS
- name: centos-7
run_list:
- recipe[yum]
driver:
image_id: ami-61bbf104
transport:
username: centos
- name: centos-6
run_list:
- recipe[yum]
driver:
image_id: ami-57cd8732
transport:
username: centos
suites:
- &default
name: 0-25-0
run_list:
- recipe[mesos::master]
- recipe[mesos::slave]
- <<: *default
name: 0-24-1
attributes:
mesos:
version: 0.24.1
- <<: *default
name: 0-24-0
attributes:
mesos:
version: 0.24.0
- <<: *default
name: 0-23-0
attributes:
mesos:
version: 0.23.0