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/oss_cluster.yml b/reclass/storage/system/oss_cluster.yml
index 71d42ce..784d8a7 100644
--- a/reclass/storage/system/oss_cluster.yml
+++ b/reclass/storage/system/oss_cluster.yml
@@ -19,6 +19,7 @@
linux_system_codename: ${_param:oss_system_codename}
single_address: ${_param:oss_node01_address}
keepalived_vip_priority: 103
+ glusterfs_node_role: primary
stacklight_server_node02:
name: ${_param:oss_node02_hostname}
domain: ${_param:cluster_domain}
@@ -30,6 +31,7 @@
linux_system_codename: ${_param:oss_system_codename}
single_address: ${_param:oss_node02_address}
keepalived_vip_priority: 102
+ glusterfs_node_role: secondary
stacklight_server_node03:
name: ${_param:oss_node03_hostname}
domain: ${_param:cluster_domain}
@@ -41,3 +43,4 @@
linux_system_codename: ${_param:oss_system_codename}
single_address: ${_param:oss_node03_address}
keepalived_vip_priority: 101
+ glusterfs_node_role: secondary