aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/reclass/classes/system/haproxy/proxy/listen/stacklight/redis.yml
blob: 881e8ed9a57db69ff96d9f63c92b0c88b410deb4 (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
parameters:
  haproxy:
    proxy:
      listen:
        redis:
          mode: tcp
          check: False
          health-check:
            tcp:
              options:
                - send PING\r\n
                - expect string +PONG
                - send info\ replication\r\n
                - expect string role:master
                - send QUIT\r\n
                - expect string +OK
          binds:
            - address: ${_param:cluster_vip_address}
              port: ${_param:cluster_redis_port}
          servers:
            - name: ${_param:cluster_node01_hostname}
              host: ${_param:cluster_node01_address}
              port: 6379
              params: 'check'
            - name: ${_param:cluster_node02_hostname}
              host: ${_param:cluster_node02_address}
              port: 6379
              params: 'check'
            - name: ${_param:cluster_node03_hostname}
              host: ${_param:cluster_node03_address}
              port: 6379
              params: 'check'