Initial commit for Drivetrain on k8s
Related-prod: #PROD-27206 (PROD:27206)
Change-Id: I43ab57c6514864cf336d6811ae971479aa2ba8ac
diff --git a/salt/control/cluster/kdt_multi_cluster.yml b/salt/control/cluster/kdt_multi_cluster.yml
new file mode 100644
index 0000000..cb429a3
--- /dev/null
+++ b/salt/control/cluster/kdt_multi_cluster.yml
@@ -0,0 +1,38 @@
+parameters:
+ _param:
+ kdt_backend_image: ${_param:salt_control_xenial_image_backend}
+ salt_control_cluster_node_cloud_init_kdt:
+ user_data:
+ write_files:
+ - content: |
+ ${salt:control:size:kdt:image_layout}
+ owner: root:root
+ path: /usr/share/growlvm/image-layout.yml
+ salt:
+ control:
+ cluster:
+ internal:
+ domain: ${_param:cluster_domain}
+ engine: virt
+ node:
+ kdt01:
+ name: ${_param:kdt_node01_hostname}
+ provider: ${_param:infra_kvm_node01_hostname}.${_param:cluster_domain}
+ image: ${_param:salt_control_xenial_image}
+ backend: ${_param:kdt_backend_image}
+ size: kdt
+ cloud_init: ${_param:salt_control_cluster_node_cloud_init_kdt}
+ kdt02:
+ name: ${_param:kdt_node02_hostname}
+ provider: ${_param:infra_kvm_node02_hostname}.${_param:cluster_domain}
+ image: ${_param:salt_control_xenial_image}
+ backend: ${_param:kdt_backend_image}
+ size: kdt
+ cloud_init: ${_param:salt_control_cluster_node_cloud_init_kdt}
+ kdt03:
+ name: ${_param:kdt_node03_hostname}
+ provider: ${_param:infra_kvm_node03_hostname}.${_param:cluster_domain}
+ image: ${_param:salt_control_xenial_image}
+ backend: ${_param:kdt_backend_image}
+ size: kdt
+ cloud_init: ${_param:salt_control_cluster_node_cloud_init_kdt}
diff --git a/salt/control/cluster/kdt_signle_cluster.yml b/salt/control/cluster/kdt_signle_cluster.yml
new file mode 100644
index 0000000..dd782ab
--- /dev/null
+++ b/salt/control/cluster/kdt_signle_cluster.yml
@@ -0,0 +1,24 @@
+parameters:
+ _param:
+ kdt_backend_image: ${_param:salt_control_xenial_image_backend}
+ salt_control_cluster_node_cloud_init_kdt:
+ user_data:
+ write_files:
+ - content: |
+ ${salt:control:size:kdt:image_layout}
+ owner: root:root
+ path: /usr/share/growlvm/image-layout.yml
+ salt:
+ control:
+ cluster:
+ internal:
+ domain: ${_param:cluster_domain}
+ engine: virt
+ node:
+ kdt01:
+ name: ${_param:kdt_node01_hostname}
+ provider: ${_param:infra_kvm_node01_hostname}.${_param:cluster_domain}
+ image: ${_param:salt_control_xenial_image}
+ backend: ${_param:kdt_backend_image}
+ size: kdt
+ cloud_init: ${_param:salt_control_cluster_node_cloud_init_kdt}
diff --git a/salt/control/placement/kdt/init.yml b/salt/control/placement/kdt/init.yml
new file mode 100644
index 0000000..acd0bea
--- /dev/null
+++ b/salt/control/placement/kdt/init.yml
@@ -0,0 +1,36 @@
+parameters:
+ _param:
+ kdt_backend_image: ${_param:salt_control_xenial_image_backend}
+ salt_control_cluster_node_cloud_init_kdt:
+ user_data:
+ write_files:
+ - content: |
+ ${salt:control:size:kdt:image_layout}
+ owner: root:root
+ path: /usr/share/growlvm/image-layout.yml
+ salt:
+ control:
+ cluster:
+ internal:
+ node:
+ kdt01:
+ name: ${_param:kdt_node01_hostname}
+ image: ${_param:salt_control_xenial_image}
+ backend: ${_param:kdt_backend_image}
+ provider: ${_param:infra_kvm_node01_hostname}.${_param:cluster_domain}
+ size: kdt
+ cloud_init: ${_param:salt_control_cluster_node_cloud_init_kdt}
+ kdt02:
+ name: ${_param:kdt_node02_hostname}
+ image: ${_param:salt_control_xenial_image}
+ backend: ${_param:kdt_backend_image}
+ provider: ${_param:infra_kvm_node02_hostname}.${_param:cluster_domain}
+ size: kdt
+ cloud_init: ${_param:salt_control_cluster_node_cloud_init_kdt}
+ kdt03:
+ name: ${_param:kdt_node03_hostname}
+ image: ${_param:salt_control_xenial_image}
+ backend: ${_param:kdt_backend_image}
+ provider: ${_param:infra_kvm_node03_hostname}.${_param:cluster_domain}
+ size: kdt
+ cloud_init: ${_param:salt_control_cluster_node_cloud_init_kdt}
diff --git a/salt/control/sizes/kdt/init.yml b/salt/control/sizes/kdt/init.yml
new file mode 100644
index 0000000..048d552
--- /dev/null
+++ b/salt/control/sizes/kdt/init.yml
@@ -0,0 +1,15 @@
+parameters:
+ _param:
+ salt_control_size_cpu_kdt: 8
+ salt_control_size_ram_kdt: 32768
+ salt_control_size_disk_profile_kdt: large
+ salt_control_size_net_profile_kdt: default
+ salt:
+ control:
+ size:
+ kdt:
+ cpu: ${_param:salt_control_size_cpu_kdt}
+ ram: ${_param:salt_control_size_ram_kdt}
+ disk_profile: ${_param:salt_control_size_disk_profile_kdt}
+ net_profile: ${_param:salt_control_size_net_profile_kdt}
+ image_layout: ${_param:salt_control_size_image_layout_kdt}