parametrized hostnames for cluster setups
diff --git a/reclass/storage/system/opencontrail_control_cluster.yml b/reclass/storage/system/opencontrail_control_cluster.yml
index 0f882a3..a8d916e 100644
--- a/reclass/storage/system/opencontrail_control_cluster.yml
+++ b/reclass/storage/system/opencontrail_control_cluster.yml
@@ -1,9 +1,13 @@
parameters:
+ _param:
+ opencontrail_control_node01_hostname: ntw01
+ opencontrail_control_node02_hostname: ntw02
+ opencontrail_control_node03_hostname: ntw03
reclass:
storage:
node:
opencontrail_control_node01:
- name: ntw01
+ name: ${_param:opencontrail_control_node01_hostname}
domain: ${_param:cluster_domain}
classes:
- cluster.${_param:cluster_name}.opencontrail.control
@@ -14,7 +18,7 @@
keepalived_vip_priority: 103
opencontrail_database_id: 1
opencontrail_control_node02:
- name: ntw02
+ name: ${_param:opencontrail_control_node02hostname}
domain: ${_param:cluster_domain}
classes:
- cluster.${_param:cluster_name}.opencontrail.control
@@ -25,7 +29,7 @@
keepalived_vip_priority: 102
opencontrail_database_id: 2
opencontrail_control_node03:
- name: ntw03
+ name: ${_param:opencontrail_control_node03_hostname}
domain: ${_param:cluster_domain}
classes:
- cluster.${_param:cluster_name}.opencontrail.control