Filip Pytloun | ef5b0af | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 1 | applications: |
| 2 | - rabbitmq |
Ales Komarek | a07cd78 | 2015-12-04 14:32:17 +0100 | [diff] [blame^] | 3 | classes: |
| 4 | - service.rabbitmq.support |
Filip Pytloun | ef5b0af | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 5 | parameters: |
| 6 | rabbitmq: |
| 7 | server: |
| 8 | enabled: true |
| 9 | secret_key: ${_param:rabbitmq_secret_key} |
| 10 | memory: |
| 11 | vm_high_watermark: 0.8 |
| 12 | bind: |
| 13 | address: ${_param:cluster_local_address} |
| 14 | port: 5672 |
| 15 | plugins: |
| 16 | - amqp_client |
| 17 | - rabbitmq_management |
| 18 | admin: |
| 19 | name: admin |
| 20 | password: ${_param:rabbitmq_admin_password} |
| 21 | host: |
| 22 | '/openstack': |
| 23 | enabled: true |
| 24 | user: openstack |
| 25 | password: ${_param:rabbitmq_openstack_password} |
| 26 | policies: |
| 27 | - name: HA |
| 28 | pattern: '^(?!amq\.).*' |
| 29 | definition: '{"ha-mode": "all"}' |
| 30 | cluster: |
| 31 | enabled: true |
| 32 | name: openstack |
| 33 | role: ${_param:rabbitmq_cluster_role} |
| 34 | master: ${_param:cluster_node01_hostname} |
| 35 | mode: disc |
| 36 | members: |
| 37 | - name: ${_param:cluster_node01_hostname} |
| 38 | host: ${_param:cluster_node01_address} |
| 39 | - name: ${_param:cluster_node02_hostname} |
| 40 | host: ${_param:cluster_node02_address} |
| 41 | - name: ${_param:cluster_node03_hostname} |
| 42 | host: ${_param:cluster_node03_address} |
| 43 | haproxy: |
| 44 | proxy: |
| 45 | listen: |
| 46 | rabbitmq_cluster: |
| 47 | type: rabbitmq |
| 48 | binds: |
| 49 | - address: ${_param:cluster_vip_address} |
| 50 | port: 5672 |
| 51 | servers: |
| 52 | - name: ctl01 |
| 53 | host: ${_param:cluster_node01_address} |
| 54 | port: 5672 |
| 55 | params: check inter 5000 rise 2 fall 3 |
| 56 | - name: ctl02 |
| 57 | host: ${_param:cluster_node02_address} |
| 58 | port: 5672 |
| 59 | params: backup check inter 5000 rise 2 fall 3 |
| 60 | - name: ctl03 |
| 61 | host: ${_param:cluster_node03_address} |
| 62 | port: 5672 |
| 63 | params: backup check inter 5000 rise 2 fall 3 |