Prepare for LVM based VCP
This patch adds metadata needed to setup partitions on
VCP with LVM.
The new param 'image_layout' is added to salt:control:size:<size_name>
This is metadata that describes partition layout of VCP.
For now VCP has predefined list of partitions see
https://gerrit.mcp.mirantis.com/#/c/30862/
image_layout defines sizes for each of partitions that should be
applied after VCP is provisioned. The resizing will be done by
growlvmp.py script placed on VCP
https://gerrit.mcp.mirantis.com/#/c/31052/
The default layout:
image_layout:
root:
size: '30%VG' # 30% of VG total size
home:
size: '1G' # fixed size 1G
var_log:
size: '11%VG' # 11% of VG total size
var_log_audit:
size: '5G' # fixed size 5G
var_tmp:
size: '11%VG' # 11% of VG total size
tmp:
size: '5G' # fixed size 5G
Related-Prod: PROD-24537
Change-Id: I18205dfa8478be2ae092a87ced833c8ab0cc01ea
diff --git a/defaults/salt/init.yml b/defaults/salt/init.yml
new file mode 100644
index 0000000..9ec550e
--- /dev/null
+++ b/defaults/salt/init.yml
@@ -0,0 +1,45 @@
+parameters:
+ _param:
+ salt_control_size_image_layout_default:
+ root:
+ size: '30%VG'
+ home:
+ size: '1G'
+ var_log:
+ size: '11%VG'
+ var_log_audit:
+ size: '5G'
+ var_tmp:
+ size: '11%VG'
+ tmp:
+ size: '5G'
+ salt_control_size_image_layout_ceph_mon: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_ceph_rgw: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_cicd_control: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_infra_idm: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_infra_integration: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_infra_maas: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_infra_proxy: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_infra_rsyslog: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_infra_storage: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_infra_version_control: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_kubernetes_control: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_kubernetes_proxy: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_opencontrail_analytics: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_opencontrail_control: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_openstack_barbican: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_openstack_baremetal: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_openstack_billing: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_openstack_control: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_openstack_database: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_openstack_dns: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_openstack_gateway: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_openstack_manila: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_openstack_message_queue: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_openstack_proxy: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_openstack_share: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_openstack_telemetry: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_openstack_upgrade: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_stacklight_log: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_stacklight_server: ${_param:salt_control_size_image_layout_default}
+ salt_control_size_image_layout_stacklight_telemetry: ${_param:salt_control_size_image_layout_default}