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/ceph/golden.yml b/salt/control/placement/ceph/golden.yml
new file mode 100644
index 0000000..3ae4860
--- /dev/null
+++ b/salt/control/placement/ceph/golden.yml
@@ -0,0 +1,74 @@
+parameters:
+ _param:
+ infra_kvm01_hostname: kvm01
+ infra_kvm02_hostname: kvm02
+ infra_kvm03_hostname: kvm03
+ ceph_mon_node01_hostname: cmn01
+ ceph_mon_node02_hostname: cmn02
+ ceph_mon_node03_hostname: cmn03
+ ceph_rgw_node01_hostname: rgw01
+ ceph_rgw_node02_hostname: rgw02
+ ceph_rgw_node03_hostname: rgw03
+ ceph_mon_backend_image: ${_param:salt_control_xenial_image_backend}
+ ceph_rgw_backend_image: ${_param:salt_control_xenial_image_backend}
+ salt_control_cluster_node_cloud_init_ceph_mon:
+ user_data:
+ write_files:
+ - content: |
+ ${salt:control:size:ceph.mon:image_layout}
+ owner: root:root
+ path: /usr/share/growlvm/image-layout.yml
+ salt_control_cluster_node_cloud_init_ceph_rgw:
+ user_data:
+ write_files:
+ - content: |
+ ${salt:control:size:ceph.rgw:image_layout}
+ owner: root:root
+ path: /usr/share/growlvm/image-layout.yml
+ salt:
+ control:
+ cluster:
+ internal:
+ node:
+ cmn01:
+ name: ${_param:ceph_mon_node01_hostname}
+ provider: ${_param:infra_kvm_node01_hostname}.${_param:cluster_domain}
+ image: ${_param:salt_control_xenial_image}
+ backend: ${_param:ceph_mon_backend_image}
+ size: ceph.mon
+ cloud_init: ${_param:salt_control_cluster_node_cloud_init_ceph_mon}
+ cmn02:
+ name: ${_param:ceph_mon_node02_hostname}
+ provider: ${_param:infra_kvm_node02_hostname}.${_param:cluster_domain}
+ image: ${_param:salt_control_xenial_image}
+ backend: ${_param:ceph_mon_backend_image}
+ size: ceph.mon
+ cloud_init: ${_param:salt_control_cluster_node_cloud_init_ceph_mon}
+ cmn03:
+ name: ${_param:ceph_mon_node03_hostname}
+ provider: ${_param:infra_kvm_node03_hostname}.${_param:cluster_domain}
+ image: ${_param:salt_control_xenial_image}
+ backend: ${_param:ceph_mon_backend_image}
+ size: ceph.mon
+ cloud_init: ${_param:salt_control_cluster_node_cloud_init_ceph_mon}
+ rgw01:
+ name: ${_param:ceph_rgw_node01_hostname}
+ provider: ${_param:infra_kvm_node01_hostname}.${_param:cluster_domain}
+ image: ${_param:salt_control_xenial_image}
+ backend: ${_param:ceph_rgw_backend_image}
+ size: ceph.rgw
+ cloud_init: ${_param:salt_control_cluster_node_cloud_init_ceph_rgw}
+ rgw02:
+ name: ${_param:ceph_rgw_node02_hostname}
+ provider: ${_param:infra_kvm_node02_hostname}.${_param:cluster_domain}
+ image: ${_param:salt_control_xenial_image}
+ backend: ${_param:ceph_rgw_backend_image}
+ size: ceph.rgw
+ cloud_init: ${_param:salt_control_cluster_node_cloud_init_ceph_rgw}
+ rgw03:
+ name: ${_param:ceph_rgw_node03_hostname}
+ provider: ${_param:infra_kvm_node03_hostname}.${_param:cluster_domain}
+ image: ${_param:salt_control_xenial_image}
+ backend: ${_param:ceph_rgw_backend_image}
+ size: ceph.rgw
+ cloud_init: ${_param:salt_control_cluster_node_cloud_init_ceph_rgw}