Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 1 | parameters: |
Ondrej Smola | 64bf5c8 | 2017-01-13 21:32:09 +0100 | [diff] [blame] | 2 | _param: |
| 3 | openstack_database_node01_hostname: dbs01 |
| 4 | openstack_database_node02_hostname: dbs02 |
| 5 | openstack_database_node03_hostname: dbs03 |
Pavel Svimbersky | 44717ec | 2017-08-24 11:41:05 +0200 | [diff] [blame] | 6 | openstack_database_system_codename: trusty |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 7 | reclass: |
| 8 | storage: |
| 9 | node: |
| 10 | openstack_database_node01: |
Ondrej Smola | 64bf5c8 | 2017-01-13 21:32:09 +0100 | [diff] [blame] | 11 | name: ${_param:openstack_database_node01_hostname} |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 12 | domain: ${_param:cluster_domain} |
| 13 | classes: |
| 14 | - service.galera.master.cluster |
| 15 | - cluster.${_param:cluster_name}.openstack.database |
| 16 | params: |
| 17 | salt_master_host: ${_param:reclass_config_master} |
Pavel Svimbersky | 44717ec | 2017-08-24 11:41:05 +0200 | [diff] [blame] | 18 | linux_system_codename: ${_param:openstack_database_system_codename} |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 19 | single_address: ${_param:openstack_database_node01_address} |
| 20 | keepalived_vip_priority: 103 |
| 21 | mysql_cluster_role: master |
| 22 | openstack_database_node02: |
Ondrej Smola | 64bf5c8 | 2017-01-13 21:32:09 +0100 | [diff] [blame] | 23 | name: ${_param:openstack_database_node02_hostname} |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 24 | domain: ${_param:cluster_domain} |
Pavel Svimbersky | 44717ec | 2017-08-24 11:41:05 +0200 | [diff] [blame] | 25 | classes: |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 26 | - service.galera.slave.cluster |
| 27 | - cluster.${_param:cluster_name}.openstack.database |
| 28 | params: |
| 29 | salt_master_host: ${_param:reclass_config_master} |
Pavel Svimbersky | 44717ec | 2017-08-24 11:41:05 +0200 | [diff] [blame] | 30 | linux_system_codename: ${_param:openstack_database_system_codename} |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 31 | single_address: ${_param:openstack_database_node02_address} |
| 32 | keepalived_vip_priority: 102 |
| 33 | mysql_cluster_role: slave |
| 34 | openstack_database_node03: |
Ondrej Smola | 64bf5c8 | 2017-01-13 21:32:09 +0100 | [diff] [blame] | 35 | name: ${_param:openstack_database_node03_hostname} |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 36 | domain: ${_param:cluster_domain} |
| 37 | classes: |
| 38 | - service.galera.slave.cluster |
| 39 | - cluster.${_param:cluster_name}.openstack.database |
| 40 | params: |
| 41 | salt_master_host: ${_param:reclass_config_master} |
Pavel Svimbersky | 44717ec | 2017-08-24 11:41:05 +0200 | [diff] [blame] | 42 | linux_system_codename: ${_param:openstack_database_system_codename} |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 43 | single_address: ${_param:openstack_database_node03_address} |
| 44 | keepalived_vip_priority: 101 |
| 45 | mysql_cluster_role: slave |