parametrized hostnames for cluster setups
diff --git a/reclass/storage/system/openstack_control_cluster.yml b/reclass/storage/system/openstack_control_cluster.yml
index 482d826..deb25b8 100644
--- a/reclass/storage/system/openstack_control_cluster.yml
+++ b/reclass/storage/system/openstack_control_cluster.yml
@@ -1,9 +1,13 @@
parameters:
+ _param:
+ openstack_control_node01_hostname: ctl01
+ openstack_control_node02_hostname: ctl02
+ openstack_control_node03_hostname: ctl03
reclass:
storage:
node:
openstack_control_node01:
- name: ctl01
+ name: ${_param:openstack_control_node01_hostname}
domain: ${_param:cluster_domain}
classes:
- cluster.${_param:cluster_name}.openstack.control
@@ -15,7 +19,7 @@
opencontrail_database_id: 1
rabbitmq_cluster_role: master
openstack_control_node02:
- name: ctl02
+ name: ${_param:openstack_control_node02_hostname}
domain: ${_param:cluster_domain}
classes:
- cluster.${_param:cluster_name}.openstack.control
@@ -27,7 +31,7 @@
opencontrail_database_id: 2
rabbitmq_cluster_role: slave
openstack_control_node03:
- name: ctl03
+ name: ${_param:openstack_control_node03_hostname}
domain: ${_param:cluster_domain}
classes:
- cluster.${_param:cluster_name}.openstack.control