Create oss_cluster for reclass storage node
Change-Id: I923fb2aa37df168d6a9821e94f782fc2f5b973d4
diff --git a/reclass/storage/system/oss_cluster.yml b/reclass/storage/system/oss_cluster.yml
new file mode 100644
index 0000000..71d42ce
--- /dev/null
+++ b/reclass/storage/system/oss_cluster.yml
@@ -0,0 +1,43 @@
+parameters:
+ _param:
+ oss_node01_hostname: mon01
+ oss_node02_hostname: mon02
+ oss_node03_hostname: mon03
+ oss_system_codename: xenial
+ reclass:
+ storage:
+ node:
+ stacklight_server_node01:
+ name: ${_param:oss_node01_hostname}
+ domain: ${_param:cluster_domain}
+ classes:
+ - system.docker.swarm.master
+ - cluster.${_param:cluster_name}.oss.client
+ - cluster.${_param:cluster_name}.oss.server
+ params:
+ salt_master_host: ${_param:reclass_config_master}
+ linux_system_codename: ${_param:oss_system_codename}
+ single_address: ${_param:oss_node01_address}
+ keepalived_vip_priority: 103
+ stacklight_server_node02:
+ name: ${_param:oss_node02_hostname}
+ domain: ${_param:cluster_domain}
+ classes:
+ - system.docker.swarm.manager
+ - cluster.${_param:cluster_name}.oss.server
+ params:
+ salt_master_host: ${_param:reclass_config_master}
+ linux_system_codename: ${_param:oss_system_codename}
+ single_address: ${_param:oss_node02_address}
+ keepalived_vip_priority: 102
+ stacklight_server_node03:
+ name: ${_param:oss_node03_hostname}
+ domain: ${_param:cluster_domain}
+ classes:
+ - system.docker.swarm.manager
+ - cluster.${_param:cluster_name}.oss.server
+ params:
+ salt_master_host: ${_param:reclass_config_master}
+ linux_system_codename: ${_param:oss_system_codename}
+ single_address: ${_param:oss_node03_address}
+ keepalived_vip_priority: 101