Merge "Smooth down API proxy config"
[fuel.git] / mcp / reclass / classes / cluster / mcp-common-noha / haproxy_openstack_api.yml
1 ##############################################################################
2 # Copyright (c) 2018 Mirantis Inc., Enea AB and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 ##############################################################################
8 ---
9 parameters:
10   _param:
11     haproxy_check: check inter 15s fastinter 2s downinter 4s rise 3 fall 3
12   haproxy:
13     proxy:
14       listen:
15         cinder_api:
16           type: openstack-service
17           service_name: cinder
18           binds:
19             - address: ${_param:cluster_vip_address}
20               port: 8776
21           servers:
22             - name: ctl01
23               host: ${_param:cluster_node01_address}
24               port: 8776
25               params: ${_param:haproxy_check}
26         glance_api:
27           type: openstack-service
28           service_name: glance
29           binds:
30             - address: ${_param:cluster_vip_address}
31               port: 9292
32           servers:
33             - name: ctl01
34               host: ${_param:cluster_node01_address}
35               port: 9292
36               params: ${_param:haproxy_check}
37         glance_registry_api:
38           type: general-service
39           service_name: glance
40           binds:
41             - address: ${_param:cluster_vip_address}
42               port: 9191
43           servers:
44             - name: ctl01
45               host: ${_param:cluster_node01_address}
46               port: 9191
47               params: ${_param:haproxy_check}
48         heat_api:
49           type: openstack-service
50           service_name: heat
51           binds:
52             - address: ${_param:cluster_vip_address}
53               port: 8004
54           servers:
55             - name: ctl01
56               host: ${_param:cluster_node01_address}
57               port: 8004
58               params: ${_param:haproxy_check}
59         heat_cfn_api:
60           type: openstack-service
61           service_name: heat
62           binds:
63             - address: ${_param:cluster_vip_address}
64               port: 8000
65           servers:
66             - name: ctl01
67               host: ${_param:cluster_node01_address}
68               port: 8000
69               params: ${_param:haproxy_check}
70         keystone_public_api:
71           type: openstack-service
72           service_name: keystone
73           binds:
74             - address: ${_param:cluster_vip_address}
75               port: 5000
76           servers:
77             - name: ctl01
78               host: ${_param:cluster_node01_address}
79               port: 5000
80               params: ${_param:haproxy_check}
81         keystone_admin_api:
82           type: openstack-service
83           service_name: keystone
84           binds:
85             - address: ${_param:cluster_vip_address}
86               port: 35357
87           servers:
88             - name: ctl01
89               host: ${_param:cluster_node01_address}
90               port: 35357
91               params: ${_param:haproxy_check}
92         neutron_api:
93           type: openstack-service
94           service_name: neutron
95           binds:
96             - address: ${_param:cluster_vip_address}
97               port: 9696
98           servers:
99             - name: ctl01
100               host: ${_param:cluster_node01_address}
101               port: 9696
102               params: ${_param:haproxy_check}
103         nova_placement_api:
104           mode: http
105           binds:
106             - address: ${_param:cluster_vip_address}
107               port: 8778
108           options:
109             - httpclose
110             - httplog
111           health-check:
112             http:
113               options:
114                 - expect status 405
115           servers:
116             - name: ctl01
117               host: ${_param:cluster_node01_address}
118               port: 8778
119               params: ${_param:haproxy_check}
120         nova_api:
121           type: openstack-service
122           service_name: nova
123           binds:
124             - address: ${_param:cluster_vip_address}
125               port: 8774
126           servers:
127             - name: ctl01
128               host: ${_param:cluster_node01_address}
129               port: 8774
130               params: ${_param:haproxy_check}
131         nova_metadata_api:
132           type: openstack-service
133           binds:
134             - address: ${_param:cluster_vip_address}
135               port: 8775
136           servers:
137             - name: ctl01
138               host: ${_param:cluster_node01_address}
139               port: 8775
140               params: ${_param:haproxy_check}
141         ceilometer_api:
142           type: general-service
143           check: false
144           binds:
145             - address: ${_param:cluster_vip_address}
146               port: 8777
147           servers:
148             - name: ${_param:cluster_node01_hostname}
149               host: ${_param:cluster_node01_address}
150               port: 8777
151               params: ${_param:haproxy_check}
152         aodh-api:
153           type: openstack-service
154           service_name: aodh
155           binds:
156             - address: ${_param:cluster_vip_address}
157               port: 8042
158           servers:
159             - name: ctl01
160               host: ${_param:cluster_node01_address}
161               port: 8042
162               params: ${_param:haproxy_check}