bootstrap-vz/manifests/examples/kvm/jessie-lvm.yml
Brendan Harley 511a44f72e Add LVM as a disk backend
Enables the use of Logical Volumes as disk backends.

It uses an existing volume group and has no support for creating a new one.
It will not override an existing logical volume and fail gracefully.

The lv is created, activated and then mounted as a loop device.
The boostraping process is then launched on the loop device.
Once the process is completed, the lv is unmounted and desactivated.

The created lv will be deleted should the boostraping process fail.

The lv must be activated before use.

A manifest has been included for testing purposes.
2017-06-08 17:05:48 +02:00

26 lines
406 B
YAML

---
name: debian-lvm-example
provider:
name: kvm
bootstrapper:
workspace: /target
system:
release: jessie
architecture: amd64
bootloader: grub
charmap: UTF-8
locale: en_US
timezone: UTC
volume:
backing: lvm
logicalvolume: lvtest
volumegroup: vgtest
partitions:
type: gpt
root:
filesystem: ext4
size: 1GB
packages: {}
plugins:
root_password:
password: test