Add golden configuration sizing and placement classes
Add classes for VCP VM sizes for golden configuration
and a mapping for placement to KVM nodes.
Change-Id: Icfc62a922182ffb03713db40d8bce4fbada98ab6
Closes-bug: PROD-26795
diff --git a/salt/control/placement/cicd/golden.yml b/salt/control/placement/cicd/golden.yml
new file mode 100644
index 0000000..0ee7d63
--- /dev/null
+++ b/salt/control/placement/cicd/golden.yml
@@ -0,0 +1,42 @@
+parameters:
+ _param:
+ infra_kvm01_hostname: kvm01
+ infra_kvm02_hostname: kvm02
+ infra_kvm03_hostname: kvm03
+ cicd_control_node01_hostname: cid01
+ cicd_control_node02_hostname: cid02
+ cicd_control_node03_hostname: cid03
+ cicd_control_backend_image: ${_param:salt_control_xenial_image_backend}
+ salt_control_cluster_node_cloud_init_cicd_control:
+ user_data:
+ write_files:
+ - content: |
+ ${salt:control:size:cicd.control:image_layout}
+ owner: root:root
+ path: /usr/share/growlvm/image-layout.yml
+ salt:
+ control:
+ cluster:
+ internal:
+ node:
+ cid01:
+ name: ${_param:cicd_control_node01_hostname}
+ image: ${_param:salt_control_xenial_image}
+ backend: ${_param:cicd_control_backend_image}
+ provider: ${_param:infra_kvm_node01_hostname}.${_param:cluster_domain}
+ size: cicd.control
+ cloud_init: ${_param:salt_control_cluster_node_cloud_init_cicd_control}
+ cid02:
+ name: ${_param:cicd_control_node02_hostname}
+ image: ${_param:salt_control_xenial_image}
+ backend: ${_param:cicd_control_backend_image}
+ provider: ${_param:infra_kvm_node02_hostname}.${_param:cluster_domain}
+ size: cicd.control
+ cloud_init: ${_param:salt_control_cluster_node_cloud_init_cicd_control}
+ cid03:
+ name: ${_param:cicd_control_node03_hostname}
+ image: ${_param:salt_control_xenial_image}
+ backend: ${_param:cicd_control_backend_image}
+ provider: ${_param:infra_kvm_node03_hostname}.${_param:cluster_domain}
+ size: cicd.control
+ cloud_init: ${_param:salt_control_cluster_node_cloud_init_cicd_control}