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/physical_control_full.yml b/reclass/storage/system/physical_control_full.yml
index 1bdd345..7c3b030 100644
--- a/reclass/storage/system/physical_control_full.yml
+++ b/reclass/storage/system/physical_control_full.yml
@@ -57,6 +57,7 @@
deploy_address: ${_param:infra_kvm_node01_deploy_address}
public_address: ${_param:infra_kvm_node01_public_address}
storage_address: ${_param:infra_kvm_node01_storage_address}
+ glusterfs_node_role: primary
infra_kvm_node02:
name: ${_param:infra_kvm_node02_hostname}
domain: ${_param:cluster_domain}
@@ -69,6 +70,7 @@
deploy_address: ${_param:infra_kvm_node02_deploy_address}
public_address: ${_param:infra_kvm_node02_public_address}
storage_address: ${_param:infra_kvm_node02_storage_address}
+ glusterfs_node_role: secondary
infra_kvm_node03:
name: ${_param:infra_kvm_node03_hostname}
domain: ${_param:cluster_domain}
@@ -81,6 +83,7 @@
deploy_address: ${_param:infra_kvm_node03_deploy_address}
public_address: ${_param:infra_kvm_node03_public_address}
storage_address: ${_param:infra_kvm_node03_storage_address}
+ glusterfs_node_role: secondary
infra_kvm_node04:
name: ${_param:infra_kvm_node04_hostname}
domain: ${_param:cluster_domain}