Add openstack_node_role parameter
Add openstack_node_role parameter that will specify node role
primary|secondary. This metadata will be used by formulas as a
trigger to run one-shot operations.
Change-Id: I230590bc5f9d53960c6edaf7e37c44541d9c3342
Related-Prod: PROD-21267
diff --git a/reclass/storage/system/openstack_control_large.yml b/reclass/storage/system/openstack_control_large.yml
index 842e133..4ad2e90 100644
--- a/reclass/storage/system/openstack_control_large.yml
+++ b/reclass/storage/system/openstack_control_large.yml
@@ -19,6 +19,7 @@
linux_system_codename: ${_param:openstack_control_system_codename}
single_address: ${_param:openstack_control_node01_address}
keepalived_vip_priority: 105
+ openstack_node_role: primary
openstack_control_node02:
name: ${_param:openstack_control_node02_hostname}
domain: ${_param:cluster_domain}
@@ -29,6 +30,7 @@
linux_system_codename: ${_param:openstack_control_system_codename}
single_address: ${_param:openstack_control_node02_address}
keepalived_vip_priority: 104
+ openstack_node_role: secondary
openstack_control_node03:
name: ${_param:openstack_control_node03_hostname}
domain: ${_param:cluster_domain}
@@ -39,6 +41,7 @@
linux_system_codename: ${_param:openstack_control_system_codename}
single_address: ${_param:openstack_control_node03_address}
keepalived_vip_priority: 103
+ openstack_node_role: secondary
openstack_control_node04:
name: ${_param:openstack_control_node04_hostname}
domain: ${_param:cluster_domain}
@@ -49,6 +52,7 @@
linux_system_codename: ${_param:openstack_control_system_codename}
single_address: ${_param:openstack_control_node04_address}
keepalived_vip_priority: 102
+ openstack_node_role: secondary
openstack_control_node05:
name: ${_param:openstack_control_node05_hostname}
domain: ${_param:cluster_domain}
@@ -59,3 +63,4 @@
linux_system_codename: ${_param:openstack_control_system_codename}
single_address: ${_param:openstack_control_node05_address}
keepalived_vip_priority: 101
+ openstack_node_role: secondary