forked from dpetzel/consul_alerts-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.yml
57 lines (52 loc) · 1.32 KB
/
.kitchen.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
<%
provisioner = ENV['KITCHEN_PROVISIONER'] || 'chef_solo'
omnibus_version = ENV['KITCHEN_OMNIBUS_VER'] || 'true'
driver = ENV['KITCHEN_DRIVER'] || 'docker'
%>
---
driver:
name: <%= driver %>
<% if driver == 'docker' %>
forward:
# Forward the HTTP port so you can browse the KV
- 8500:8500
<% end %>
provisioner:
name: <%= provisioner %>
<% if driver == 'digitalocean' %>
driver_config:
digitalocean_client_id: <%= ENV['DIGITALOCEAN_CLIENT_ID'] %>
digitalocean_access_token: <%= ENV['DIGITALOCEAN_ACCESS_TOKEN'] %>
region: nyc1
ssh_key_ids: <%= ENV['DIGITALOCEAN_SSH_KEY_IDS'] %>
ssh_key: <%= ENV['DIGITALOCEAN_SSH_KEY'] %>
size: 512mb
private_networking: true
<% end %>
platforms:
<% if driver == 'docker' %>
- name: centos5
driver_config:
image: centos:centos5
platform: centos
provision_command:
echo 'Defaults !requiretty' >> /etc/sudoers;
- name: centos6
driver_config:
image: centos:centos6
platform: centos
provision_command:
echo 'Defaults !requiretty' >> /etc/sudoers;
<% elsif driver == 'digitalocean' %>
- name: ubuntu-12.04
driver_config:
image: ubuntu-12-04-x64
<% end %>
suites:
- name: default
run_list:
- recipe[consul_alerts_test::default]
attributes:
consul:
serve_ui: true
client_addr: 0.0.0.0