forked from mdsol/mesos_cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.ec2.yml
183 lines (171 loc) · 4.15 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
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
174
175
176
177
178
179
180
181
182
183
<%
# To keep the YAML as simple as possible, some values are computed here
AWS_ACCESS_KEY_ID = ENV['AWS_ACCESS_KEY_ID'] ||'(ENTER_ACCESS_KEY_ID)'
AWS_ACCESS_KEY_SECRET = ENV['AWS_SECRET_KEY'] || '(ENTER_AWS_SECRET_ID)'
AWS_FLAVOR_ID = ENV['AWS_FLAVOR_ID'] || '(ENTER_AWS_FLAVOR_ID)'
AWS_SSH_KEY_ID = ENV['AWS_SSH_KEY_ID'] || 'default'
AWS_SSH_KEYPATH = File.expand_path(ENV['AWS_SSH_KEY_PATH'] || "#{ENV['HOME']}/.ssh/id_rsa")
USER = ENV['USER'] || '(ENTER_USER)'
%>
---
driver:
name: ec2
aws_access_key_id: <%= AWS_ACCESS_KEY_ID %>
aws_secret_access_key: <%= AWS_ACCESS_KEY_SECRET %>
aws_ssh_key_id: <%= AWS_SSH_KEY_ID %>
ssh_key: <%= AWS_SSH_KEYPATH %>
region: us-east-1
availability_zone: us-east-1c
flavor_id: <%= AWS_FLAVOR_ID %>
require_chef_omnibus: true
tags:
created-by: 'test-kitchen'
launched-by: <%= USER %>
Name: 'test-kitchen-mesos-cookbook-<%= Time.now.to_i %>'
busser:
sudo: true
provisioner:
name: chef_zero
require_chef_omnibus: 12.0.3
data_path: test/shared
platforms:
- name: ubuntu-14.04
run_list:
- recipe[apt]
- recipe[zookeeper-apt]
driver_config:
image_id: ami-64e27e0c
username: ubuntu
- name: ubuntu-13.10
run_list:
- recipe[apt]
- recipe[zookeeper-apt]
driver_config:
image_id: ami-7461a11c
username: ubuntu
- name: ubuntu-12.04
run_list:
- recipe[apt]
- recipe[zookeeper-apt]
driver_config:
image_id: ami-ccaed0a4
username: ubuntu
- name: debian-wheezy
run_list:
- recipe[apt]
- recipe[zookeeper-apt]
driver_config:
image_id: ami-3695e55e
username: admin
- name: centos-6.4
run_list:
- recipe[yum::default]
- recipe[zookeeper-yum]
driver_config:
image_id: ami-52009e3b
username: ec2-user
suites:
- name: default
run_list:
- recipe[mesos::master]
- recipe[mesos::slave]
attributes:
mesos:
version: '0.20.1'
zookeeper_server_list: [ '127.0.0.1' ]
zookeeper_port: 2181
zookeeper_path: 'mesos'
master:
flags:
authenticate: no
authenticate_slaves: false
logging_level: INFO
cluster: 'MyMesosCluster'
slave:
flags:
gc_delay: 1days
checkpoint: true
switch_user: yes
- name: 0-21-1
run_list:
- recipe[mesos::master]
- recipe[mesos::slave]
attributes:
mesos:
version: '0.21.1'
zookeeper_server_list: [ '127.0.0.1' ]
zookeeper_port: 2181
zookeeper_path: 'mesos'
master:
flags:
authenticate: no
authenticate_slaves: false
logging_level: INFO
cluster: 'MyMesosCluster'
slave:
flags:
gc_delay: 1days
checkpoint: true
- name: 0-21-0
run_list:
- recipe[mesos::master]
- recipe[mesos::slave]
attributes:
mesos:
version: '0.21.0'
zookeeper_server_list: [ '127.0.0.1' ]
zookeeper_port: 2181
zookeeper_path: 'mesos'
master:
flags:
authenticate: no
authenticate_slaves: false
logging_level: INFO
cluster: 'MyMesosCluster'
slave:
flags:
gc_delay: 1days
checkpoint: true
switch_user: yes
- name: 0-20-0
run_list:
- recipe[mesos::master]
- recipe[mesos::slave]
attributes:
mesos:
version: '0.20.0'
zookeeper_server_list: [ '127.0.0.1' ]
zookeeper_port: 2181
zookeeper_path: 'mesos'
master:
flags:
authenticate: no
authenticate_slaves: false
logging_level: INFO
cluster: 'MyMesosCluster'
slave:
flags:
gc_delay: 1days
checkpoint: true
switch_user: yes
- name: 0-19-1
run_list:
- recipe[mesos::master]
- recipe[mesos::slave]
attributes:
mesos:
version: '0.19.1'
zookeeper_server_list: [ '127.0.0.1' ]
zookeeper_port: 2181
zookeeper_path: 'mesos'
master:
flags:
authenticate: no
authenticate_slaves: false
logging_level: INFO
cluster: 'MyMesosCluster'
slave:
flags:
gc_delay: 1days
checkpoint: true
switch_user: yes