forked from sous-chefs/haproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.kitchen.yml
60 lines (55 loc) · 1.56 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
58
59
60
---
driver_plugin: vagrant
driver_config:
require_chef_omnibus: 10.24.4
platforms:
- name: ubuntu-12.04
driver_config:
box: opscode-ubuntu-12.04
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box
suites:
- name: default
run_list:
- recipe[haproxy]
attributes: {}
- name: app_lb
run_list:
- recipe[haproxy::app_lb]
attributes:
haproxy:
app_servers: [ { hostname: 'host1', ipaddress: "1.2.3.1" }, { hostname: 'host2', ipaddress: "1.2.3.2" }, { hostname: 'host3', ipaddress: "1.2.3.3" } ]
- name: galera
run_list:
- recipe[haproxy::app_lb]
attributes:
haproxy:
app_servers: [ { hostname: 'host1', ipaddress: "1.2.3.1" }, { hostname: 'host2', ipaddress: "1.2.3.2" }, { hostname: 'host3', ipaddress: "1.2.3.3" } ]
app_lb:
template: "haproxy-galera.cfg.erb"
inter: 2000
rise: 5
fall: 3
single_active: true
app_server_role: percona
incoming_port: 3306
member_port: 3306
check_port: 9200
balance_algorithm: leastconn
admin:
address_bind: "0.0.0.0"
- name: galera-no-hostnames
run_list:
- recipe[haproxy::app_lb]
attributes:
haproxy:
app_servers: [ { ipaddress: "1.2.3.1" }, { ipaddress: "1.2.3.2" }, { ipaddress: "1.2.3.3" } ]
app_lb:
template: "haproxy-galera.cfg.erb"
single_active: true
app_server_role: percona
incoming_port: 3306
member_port: 3306
check_port: 9200
balance_algorithm: leastconn
admin:
address_bind: "0.0.0.0"