summaryrefslogtreecommitdiffstats
path: root/mcp/reclass/classes/system/neutron/control/cluster.yml
blob: dd1d3eedf544d9ffda7f54a6583eac9294564072 (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
classes:
- service.keepalived.cluster.single
- service.haproxy.proxy.single
- service.neutron.control.cluster
- system.haproxy.proxy.listen.openstack.neutron
parameters:
  mysql:
    server:
      database:
        neutron:
          encoding: utf8
          users:
          - name: neutron
            password: ${_param:mysql_neutron_password}
            host: '%'
            rights: all
          - name: neutron
            password: ${_param:mysql_neutron_password}
            host: ${_param:cluster_local_address}
            rights: all
  haproxy:
    proxy:
      listen:
        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: check inter 10s fastinter 2s downinter 3s rise 3 fall 3
          - name: ctl02
            host: ${_param:cluster_node02_address}
            port: 9696
            params: check inter 10s fastinter 2s downinter 3s rise 3 fall 3
          - name: ctl03
            host: ${_param:cluster_node03_address}
            port: 9696
            params: check inter 10s fastinter 2s downinter 3s rise 3 fall 3
  neutron:
    server:
      plugin: contrail