parametrized hostnames for cluster setups
diff --git a/reclass/storage/system/stacklight_server_cluster.yml b/reclass/storage/system/stacklight_server_cluster.yml
index 1ffe9b3..a654ea2 100644
--- a/reclass/storage/system/stacklight_server_cluster.yml
+++ b/reclass/storage/system/stacklight_server_cluster.yml
@@ -1,9 +1,13 @@
parameters:
+ _param:
+ stacklight_monitor_node01_hostname: mon01
+ stacklight_monitor_node01_hostname: mon02
+ stacklight_monitor_node01_hostname: mon03
reclass:
storage:
node:
stacklight_server_node01:
- name: mon01
+ name: ${_param:stacklight_monitor_node01_hostname}
domain: ${_param:cluster_domain}
classes:
- cluster.${_param:cluster_name}.stacklight.server
@@ -18,7 +22,7 @@
single_address: ${_param:stacklight_monitor_node01_address}
keepalived_vip_priority: 103
stacklight_server_node02:
- name: mon02
+ name: ${_param:stacklight_monitor_node02_hostname}
domain: ${_param:cluster_domain}
classes:
- cluster.${_param:cluster_name}.stacklight.server
@@ -28,7 +32,7 @@
single_address: ${_param:stacklight_monitor_node02_address}
keepalived_vip_priority: 102
stacklight_server_node03:
- name: mon03
+ name: ${_param:stacklight_monitor_node03_hostname}
domain: ${_param:cluster_domain}
classes:
- cluster.${_param:cluster_name}.stacklight.server
@@ -36,4 +40,4 @@
salt_master_host: ${_param:reclass_config_master}
linux_system_codename: xenial
single_address: ${_param:stacklight_monitor_node03_address}
- keepalived_vip_priority: 101
+ keepalived_vip_priority: 101
\ No newline at end of file