Add roles for gluster cluster
Adding role for Glusterfs in cluster in order to be able to
manage cluster based on roles and not on node names.
Change-Id: Ib790fd65113fa62e62ec3b3cf715bebdec95e06c
Related-Prod: https://mirantis.jira.com/browse/PROD-23104
diff --git a/reclass/storage/system/openstack_control_cluster.yml b/reclass/storage/system/openstack_control_cluster.yml
index e05b3e9..cf21437 100644
--- a/reclass/storage/system/openstack_control_cluster.yml
+++ b/reclass/storage/system/openstack_control_cluster.yml
@@ -20,6 +20,7 @@
opencontrail_database_id: 1
rabbitmq_cluster_role: master
openstack_node_role: primary
+ glusterfs_node_role: primary
openstack_control_node02:
name: ${_param:openstack_control_node02_hostname}
domain: ${_param:cluster_domain}
@@ -33,6 +34,7 @@
opencontrail_database_id: 2
rabbitmq_cluster_role: slave
openstack_node_role: secondary
+ glusterfs_node_role: secondary
openstack_control_node03:
name: ${_param:openstack_control_node03_hostname}
domain: ${_param:cluster_domain}
@@ -46,3 +48,4 @@
opencontrail_database_id: 3
rabbitmq_cluster_role: slave
openstack_node_role: secondary
+ glusterfs_node_role: secondary