Use Galera for storing Grafana items
Change-Id: I37a05d86395f8c825c617fff7474cedc60ce6768
diff --git a/classes/cluster/virtual-mcp11-k8s-contrail/infra/config.yml b/classes/cluster/virtual-mcp11-k8s-contrail/infra/config.yml
index 4077b40..4fd9100 100644
--- a/classes/cluster/virtual-mcp11-k8s-contrail/infra/config.yml
+++ b/classes/cluster/virtual-mcp11-k8s-contrail/infra/config.yml
@@ -53,6 +53,7 @@
name: ${_param:stacklight_node01_hostname}
domain: ${_param:cluster_domain}
classes:
+ - service.galera.master.cluster
- system.docker.swarm.master
- cluster.${_param:cluster_name}.stacklight.client
- cluster.${_param:cluster_name}.stacklight.server
@@ -61,10 +62,12 @@
linux_system_codename: xenial
single_address: ${_param:stacklight_node01_address}
keepalived_vip_priority: 100
+ mysql_cluster_role: master
stacklight_node02:
name: ${_param:stacklight_node02_hostname}
domain: ${_param:cluster_domain}
classes:
+ - service.galera.slave.cluster
- system.docker.swarm.manager
- cluster.${_param:cluster_name}.stacklight.server
params:
@@ -72,10 +75,12 @@
linux_system_codename: xenial
single_address: ${_param:stacklight_node02_address}
keepalived_vip_priority: 101
+ mysql_cluster_role: slave
stacklight_node03:
name: ${_param:stacklight_node03_hostname}
domain: ${_param:cluster_domain}
classes:
+ - service.galera.slave.cluster
- system.docker.swarm.manager
- cluster.${_param:cluster_name}.stacklight.server
params:
@@ -83,6 +88,7 @@
linux_system_codename: xenial
single_address: ${_param:stacklight_node03_address}
keepalived_vip_priority: 102
+ mysql_cluster_role: slave
opencontrail_control_node01:
params:
rabbitmq_cluster_role: master