blob: 7a2f3e520d99d54601cabb74a229817721ee11f6 [file] [log] [blame]
Ondrej Smola03ff34e2016-12-01 01:30:33 +01001parameters:
Ondrej Smola64bf5c82017-01-13 21:32:09 +01002 _param:
3 openstack_database_node01_hostname: dbs01
4 openstack_database_node02_hostname: dbs02
5 openstack_database_node03_hostname: dbs03
Pavel Svimbersky44717ec2017-08-24 11:41:05 +02006 openstack_database_system_codename: trusty
Ondrej Smola03ff34e2016-12-01 01:30:33 +01007 reclass:
8 storage:
9 node:
10 openstack_database_node01:
Ondrej Smola64bf5c82017-01-13 21:32:09 +010011 name: ${_param:openstack_database_node01_hostname}
Ondrej Smola03ff34e2016-12-01 01:30:33 +010012 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 Svimbersky44717ec2017-08-24 11:41:05 +020018 linux_system_codename: ${_param:openstack_database_system_codename}
Ondrej Smola03ff34e2016-12-01 01:30:33 +010019 single_address: ${_param:openstack_database_node01_address}
20 keepalived_vip_priority: 103
21 mysql_cluster_role: master
22 openstack_database_node02:
Ondrej Smola64bf5c82017-01-13 21:32:09 +010023 name: ${_param:openstack_database_node02_hostname}
Ondrej Smola03ff34e2016-12-01 01:30:33 +010024 domain: ${_param:cluster_domain}
Pavel Svimbersky44717ec2017-08-24 11:41:05 +020025 classes:
Ondrej Smola03ff34e2016-12-01 01:30:33 +010026 - service.galera.slave.cluster
27 - cluster.${_param:cluster_name}.openstack.database
28 params:
29 salt_master_host: ${_param:reclass_config_master}
Pavel Svimbersky44717ec2017-08-24 11:41:05 +020030 linux_system_codename: ${_param:openstack_database_system_codename}
Ondrej Smola03ff34e2016-12-01 01:30:33 +010031 single_address: ${_param:openstack_database_node02_address}
32 keepalived_vip_priority: 102
33 mysql_cluster_role: slave
34 openstack_database_node03:
Ondrej Smola64bf5c82017-01-13 21:32:09 +010035 name: ${_param:openstack_database_node03_hostname}
Ondrej Smola03ff34e2016-12-01 01:30:33 +010036 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 Svimbersky44717ec2017-08-24 11:41:05 +020042 linux_system_codename: ${_param:openstack_database_system_codename}
Ondrej Smola03ff34e2016-12-01 01:30:33 +010043 single_address: ${_param:openstack_database_node03_address}
44 keepalived_vip_priority: 101
45 mysql_cluster_role: slave