Initial commit for Drivetrain on k8s
Related-prod: #PROD-27206 (PROD:27206)
Change-Id: I43ab57c6514864cf336d6811ae971479aa2ba8ac
diff --git a/reclass/storage/system/kdt_multi_cluster.yml b/reclass/storage/system/kdt_multi_cluster.yml
new file mode 100644
index 0000000..733e2b8
--- /dev/null
+++ b/reclass/storage/system/kdt_multi_cluster.yml
@@ -0,0 +1,28 @@
+classes:
+ - system.reclass.storage.system.kdt_single_cluster
+parameters:
+ reclass:
+ storage:
+ node:
+ kdt_node02:
+ name: kdt02
+ domain: ${_param:cluster_domain}
+ classes:
+ - cluster.${_param:cluster_name}.kdt.control
+ params:
+ salt_master_host: ${_param:reclass_config_master}
+ linux_system_codename: ${_param:kdt_system_codename}
+ single_address: ${_param:kdt_node02_address}
+ keepalived_vip_priority: 102
+ glusterfs_node_role: secondary
+ kdt_node03:
+ name: kdt03
+ domain: ${_param:cluster_domain}
+ classes:
+ - cluster.${_param:cluster_name}.kdt.control
+ params:
+ salt_master_host: ${_param:reclass_config_master}
+ linux_system_codename: ${_param:kdt_system_codename}
+ single_address: ${_param:kdt_node03_address}
+ keepalived_vip_priority: 101
+ glusterfs_node_role: secondary
diff --git a/reclass/storage/system/kdt_single_cluster.yml b/reclass/storage/system/kdt_single_cluster.yml
new file mode 100644
index 0000000..f452f15
--- /dev/null
+++ b/reclass/storage/system/kdt_single_cluster.yml
@@ -0,0 +1,17 @@
+parameters:
+ _param:
+ kdt_system_codename: xenial
+ reclass:
+ storage:
+ node:
+ kdt_node01:
+ name: kdt01
+ domain: ${_param:cluster_domain}
+ classes:
+ - cluster.${_param:cluster_name}.kdt.control
+ params:
+ salt_master_host: ${_param:reclass_config_master}
+ linux_system_codename: ${_param:kdt_system_codename}
+ single_address: ${_param:kdt_node01_address}
+ keepalived_vip_priority: 103
+ glusterfs_node_role: primary