Filip Pytloun | 5b3c12e | 2015-10-06 16:28:32 +0200 | [diff] [blame^] | 1 | applications: |
| 2 | - mysql |
| 3 | parameters: |
| 4 | mysql: |
| 5 | cluster: |
| 6 | enabled: true |
| 7 | name: openstack |
| 8 | role: ${_param:mysql_cluster_role} |
| 9 | bind: |
| 10 | address: ${_param:cluster_local_address} |
| 11 | port: 4567 |
| 12 | members: |
| 13 | - host: ${_param:cluster_node01_address} |
| 14 | port: 4567 |
| 15 | - host: ${_param:cluster_node02_address} |
| 16 | port: 4567 |
| 17 | - host: ${_param:cluster_node03_address} |
| 18 | port: 4567 |
| 19 | gcache_size: 4000 |
| 20 | server: |
| 21 | enabled: true |
| 22 | force_encoding: utf8 |
| 23 | version: '5.5' |
| 24 | admin: |
| 25 | user: root |
| 26 | password: ${_param:mysql_admin_password} |
| 27 | bind: |
| 28 | address: ${_param:cluster_local_address} |
| 29 | port: 3306 |
| 30 | users: |
| 31 | - name: haproxy |
| 32 | host: localhost |
| 33 | - name: haproxy |
| 34 | host: '%' |
| 35 | - name: haproxy |
| 36 | host: ${_param:cluster_local_address} |
| 37 | haproxy: |
| 38 | proxy: |
| 39 | listen: |
| 40 | mysql_cluster: |
| 41 | type: mysql |
| 42 | binds: |
| 43 | - address: ${_param:cluster_vip_address} |
| 44 | port: 3306 |
| 45 | servers: |
| 46 | - name: ctl01 |
| 47 | host: ${_param:cluster_node01_address} |
| 48 | port: 3306 |
| 49 | params: check |
| 50 | - name: ctl02 |
| 51 | host: ${_param:cluster_node02_address} |
| 52 | port: 3306 |
| 53 | params: backup check |
| 54 | - name: ctl03 |
| 55 | host: ${_param:cluster_node03_address} |
| 56 | port: 3306 |
| 57 | params: backup check |