From 81362a5bc465b064ad938e435685c4969bd0a570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 9 Feb 2022 19:33:12 +0100 Subject: Nspawn create machine. --- manifests/machine.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/manifests/machine.pp b/manifests/machine.pp index cb7c066..de6d848 100644 --- a/manifests/machine.pp +++ b/manifests/machine.pp @@ -49,7 +49,10 @@ define nspawn::machine ( # TODO deep merge? } + $nspawn_opts - systemd_mount { "/var/lib/machines/${machine}": + exec { "lvcreate -n vm-${machine} -V 100G --thinpool lvpoolData VolGroup": + creates => "/dev/VolGroup/vm-${machine}", + path => ['/usr/bin',], + } -> systemd_mount { "/var/lib/machines/${machine}": what => "/dev/VolGroup/vm-${machine}" } -- cgit v1.2.3