aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/reclass/classes/cluster/virtual-mcp-pike-common/haproxy_openstack_api.yml
blob: 649b75c8cecdfc1a4e490458aa3464ff5fee7f2c (plain)
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
184
185
186
187
188
189
190
191
192
193
194
195
196
##############################################################################
# Copyright (c) 2017 Mirantis Inc., Enea AB and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
---
parameters:
  _param:
    haproxy_check: check inter 15s fastinter 2s downinter 4s rise 3 fall 3
  haproxy:
    proxy:
      listen:
        cinder_api:
          type: openstack-service
          service_name: cinder
          binds:
            - address: ${_param:cluster_vip_address}
              port: 8776
          servers:
            - name: ctl01
              host: ${_param:cluster_node01_address}
              port: 8776
              params: ${_param:haproxy_check}
        glance_api:
          type: openstack-service
          service_name: glance
          binds:
            - address: ${_param:cluster_vip_address}
              port: 9292
          servers:
            - name: ctl01
              host: ${_param:cluster_node01_address}
              port: 9292
              params: ${_param:haproxy_check}
        glance_registry_api:
          type: general-service
          service_name: glance
          binds:
            - address: ${_param:cluster_vip_address}
              port: 9191
          servers:
            - name: ctl01
              host: ${_param:cluster_node01_address}
              port: 9191
              params: ${_param:haproxy_check}
        glare:
          type: general-service
          service_name: glare
          binds:
            - address: ${_param:cluster_vip_address}
              port: 9494
          servers:
            - name: ctl01
              host: ${_param:cluster_node01_address}
              port: 9494
              params: ${_param:haproxy_check}
        heat_cloudwatch_api:
          type: openstack-service
          service_name: heat
          binds:
            - address: ${_param:cluster_vip_address}
              port: 8003
          servers:
            - name: ctl01
              host: ${_param:cluster_node01_address}
              port: 8003
              params: ${_param:haproxy_check}
        heat_api:
          type: openstack-service
          service_name: heat
          binds:
            - address: ${_param:cluster_vip_address}
              port: 8004
          servers:
            - name: ctl01
              host: ${_param:cluster_node01_address}
              port: 8004
              params: ${_param:haproxy_check}
        heat_cfn_api:
          type: openstack-service
          service_name: heat
          binds:
            - address: ${_param:cluster_vip_address}
              port: 8000
          servers:
            - name: ctl01
              host: ${_param:cluster_node01_address}
              port: 8000
              params: ${_param:haproxy_check}
        keystone_public_api:
          type: openstack-service
          service_name: keystone
          binds:
            - address: ${_param:cluster_vip_address}
              port: 5000
          servers:
            - name: ctl01
              host: ${_param:cluster_node01_address}
              port: 5000
              params: ${_param:haproxy_check}
        keystone_admin_api:
          type: openstack-service
          service_name: keystone
          binds:
            - address: ${_param:cluster_vip_address}
              port: 35357
          servers:
            - name: ctl01
              host: ${_param:cluster_node01_address}
              port: 35357
              params: ${_param:haproxy_check}
        neutron_api:
          type: openstack-service
          service_name: neutron
          binds:
            - address: ${_param:cluster_vip_address}
              port: 9696
          servers:
            - name: ctl01
              host: ${_param:cluster_node01_address}
              port: 9696
              params: ${_param:haproxy_check}
        nova_placement_api:
          mode: http
          binds:
            - address: ${_param:cluster_vip_address}
              port: 8778
          options:
            - httpclose
            - httplog
          health-check:
            http:
              options:
                - expect status 401
          servers:
            - name: ctl01
              host: ${_param:cluster_node01_address}
              port: 8778
              params: ${_param:haproxy_check}
        nova_ec2_api:
          type: general-service
          service_name: nova
          check: false
          binds:
            - address: ${_param:cluster_vip_address}
              port: 8773
          servers:
            - name: ctl01
              host: ${_param:cluster_node01_address}
              port: 8773
              params: ${_param:haproxy_check}
        nova_api:
          type: openstack-service
          service_name: nova
          binds:
            - address: ${_param:cluster_vip_address}
              port: 8774
          servers:
            - name: ctl01
              host: ${_param:cluster_node01_address}
              port: 8774
              params: ${_param:haproxy_check}
        nova_metadata_api:
          type: openstack-service
          binds:
            - address: ${_param:cluster_vip_address}
              port: 8775
          servers:
            - name: ctl01
              host: ${_param:cluster_node01_address}
              port: 8775
              params: ${_param:haproxy_check}
        ceilometer_api:
          type: general-service
          check: false
          binds:
            - address: ${_param:cluster_vip_address}
              port: 8777
          servers:
            - name: ${_param:cluster_node01_hostname}
              host: ${_param:cluster_node01_address}
              port: 8777
              params: ${_param:haproxy_check}
        aodh-api:
          type: openstack-service
          service_name: aodh
          binds:
            - address: ${_param:cluster_vip_address}
              port: 8042
          servers:
            - name: ctl01
              host: ${_param:cluster_node01_address}
              port: 8042
              params: ${_param:haproxy_check}