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_large.yml b/reclass/storage/system/openstack_control_large.yml
index 4ad2e90..f02b24c 100644
--- a/reclass/storage/system/openstack_control_large.yml
+++ b/reclass/storage/system/openstack_control_large.yml
@@ -20,6 +20,7 @@
single_address: ${_param:openstack_control_node01_address}
keepalived_vip_priority: 105
openstack_node_role: primary
+ glusterfs_node_role: primary
openstack_control_node02:
name: ${_param:openstack_control_node02_hostname}
domain: ${_param:cluster_domain}
@@ -31,6 +32,7 @@
single_address: ${_param:openstack_control_node02_address}
keepalived_vip_priority: 104
openstack_node_role: secondary
+ glusterfs_node_role: secondary
openstack_control_node03:
name: ${_param:openstack_control_node03_hostname}
domain: ${_param:cluster_domain}
@@ -42,6 +44,7 @@
single_address: ${_param:openstack_control_node03_address}
keepalived_vip_priority: 103
openstack_node_role: secondary
+ glusterfs_node_role: secondary
openstack_control_node04:
name: ${_param:openstack_control_node04_hostname}
domain: ${_param:cluster_domain}
@@ -53,6 +56,7 @@
single_address: ${_param:openstack_control_node04_address}
keepalived_vip_priority: 102
openstack_node_role: secondary
+ glusterfs_node_role: secondary
openstack_control_node05:
name: ${_param:openstack_control_node05_hostname}
domain: ${_param:cluster_domain}
@@ -64,3 +68,4 @@
single_address: ${_param:openstack_control_node05_address}
keepalived_vip_priority: 101
openstack_node_role: secondary
+ glusterfs_node_role: secondary