tripleo-image-elements/elements/overcloud-partition-uefi/block-device-default.yaml

135 lines
2.8 KiB
YAML

- local_loop:
name: image0
- partitioning:
base: image0
label: gpt
partitions:
- name: ESP
type: 'EF00'
size: 16MiB
mkfs:
type: vfat
mount:
mount_point: /boot/efi
fstab:
options: "defaults"
fsck-passno: 2
- name: BSP
type: 'EF02'
size: 8MiB
- name: boot
type: 'BC13C2FF-59E6-4262-A352-B275FD6F7172'
size: 500MiB
mkfs:
type: ext4
mount:
mount_point: /boot
fstab:
options: "defaults"
fsck-passno: 1
- name: root
flags: [ boot ]
# The passed-in DIB_IMAGE_SIZE is 6GiB, 6144MiB
# Otherwise, there is a 2MiB overhead
size: 5618MiB
- lvm:
name: lvm
base: [ root ]
pvs:
- name: pv
base: root
options: [ "--force" ]
vgs:
- name: vg
base: [ "pv" ]
options: [ "--force" ]
lvs:
- name: lv_root
base: vg
# Volume sizes should be a multiple of 4MiB (1 LVM extent)
# so this is rounded down from 3706MiB
size: 3704MiB
- name: lv_tmp
base: vg
size: 240MiB
- name: lv_var
base: vg
size: 952MiB
- name: lv_log
base: vg
size: 240MiB
- name: lv_audit
base: vg
size: 192MiB
- name: lv_home
base: vg
size: 240MiB
- name: lv_srv
base: vg
size: 48MiB
- mkfs:
name: fs_root
base: lv_root
type: xfs
label: "img-rootfs"
mount:
mount_point: /
fstab:
options: "rw,relatime"
fsck-passno: 1
- mkfs:
name: fs_tmp
base: lv_tmp
type: xfs
mount:
mount_point: /tmp
fstab:
options: "rw,nosuid,nodev,noexec,relatime"
fsck-passno: 2
- mkfs:
name: fs_var
base: lv_var
type: xfs
mount:
mount_point: /var
fstab:
options: "rw,relatime"
fsck-passno: 2
- mkfs:
name: fs_log
base: lv_log
type: xfs
mount:
mount_point: /var/log
fstab:
options: "rw,relatime"
fsck-passno: 2
- mkfs:
name: fs_audit
base: lv_audit
type: xfs
mount:
mount_point: /var/log/audit
fstab:
options: "rw,relatime"
fsck-passno: 2
- mkfs:
name: fs_home
base: lv_home
type: xfs
mount:
mount_point: /home
fstab:
options: "rw,nodev,relatime"
fsck-passno: 2
- mkfs:
name: fs_srv
base: lv_srv
type: xfs
mount:
mount_point: /srv
fstab:
options: "rw,nodev,relatime"
fsck-passno: 2