Adding barbican nodes cluster
The patch adds new class with three barbican nodes and
different roles. The first has primary role and the others
two secondary.
Change-Id: I9403b80a9d653b31dd7f4ec5b4d56d017b43b074
Related-PROD: PROD-21338 (PROD:21338)
diff --git a/reclass/storage/system/openstack_barbican_cluster.yml b/reclass/storage/system/openstack_barbican_cluster.yml
new file mode 100644
index 0000000..1b47ee6
--- /dev/null
+++ b/reclass/storage/system/openstack_barbican_cluster.yml
@@ -0,0 +1,42 @@
+parameters:
+ _param:
+ openstack_barbican_node01_hostname: kmn01
+ openstack_barbican_node02_hostname: kmn02
+ openstack_barbican_node03_hostname: kmn03
+ openstack_barbican_system_codename: xenial
+ reclass:
+ storage:
+ node:
+ openstack_barbican_node01:
+ name: ${_param:openstack_barbican_node01_hostname}
+ domain: ${_param:cluster_domain}
+ classes:
+ - cluster.${_param:cluster_name}.openstack.barbican
+ params:
+ salt_master_host: ${_param:reclass_config_master}
+ linux_system_codename: ${_param:openstack_barbican_system_codename}
+ single_address: ${_param:openstack_barbican_node01_address}
+ keepalived_vip_priority: 103
+ openstack_node_role: primary
+ openstack_barbican_node02:
+ name: ${_param:openstack_barbican_node02_hostname}
+ domain: ${_param:cluster_domain}
+ classes:
+ - cluster.${_param:cluster_name}.openstack.barbican
+ params:
+ salt_master_host: ${_param:reclass_config_master}
+ linux_system_codename: ${_param:openstack_barbican_system_codename}
+ single_address: ${_param:openstack_barbican_node02_address}
+ keepalived_vip_priority: 102
+ openstack_node_role: secondary
+ openstack_barbican_node03:
+ name: ${_param:openstack_barbican_node03_hostname}
+ domain: ${_param:cluster_domain}
+ classes:
+ - cluster.${_param:cluster_name}.openstack.barbican
+ params:
+ salt_master_host: ${_param:reclass_config_master}
+ linux_system_codename: ${_param:openstack_barbican_system_codename}
+ single_address: ${_param:openstack_barbican_node03_address}
+ keepalived_vip_priority: 101
+ openstack_node_role: secondary