use variable to select system disk

This commit is contained in:
buchel_k committed 2025-03-25 15:36:00 +01:00
1 parent 2f7208f6ff
commit b633b63f64
1 file changed
+1 -6
@@ -54,7 +54,7 @@ To add a new volume to the system disk, you need to address the [lvm Puppet modu
lvm::volume_groups:
vg_root:
physical_volumes:
- /dev/nvme0n1p3
- "%{lvm_vg_vg_root_pvs}"
logical_volumes:
lv_data:
size: 3TB
@@ -63,8 +63,6 @@ lvm::volume_groups:
size_is_minsize: true
```
Please note that you need also to list the partition on which `vg_root` is located.
The same you can do to add partitions outside of the system disk, but here you need to define the full LVM volume group:
```yaml
@@ -93,6 +91,3 @@ lvm::volume_groups:
```
but for the `lvm` Puppet module to accept this you need to set `followsymlinks: true`.