diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-02-09 19:33:12 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-02-09 19:35:24 +0100 |
commit | 81362a5bc465b064ad938e435685c4969bd0a570 (patch) | |
tree | a8db1b8231ee65f88dd6ced0657a06d0d558df56 | |
parent | Nspawn create systemd mount files. (diff) | |
download | nspawn-81362a5bc465b064ad938e435685c4969bd0a570.tar.gz nspawn-81362a5bc465b064ad938e435685c4969bd0a570.tar.xz |
Nspawn create machine.
Diffstat (limited to '')
-rw-r--r-- | manifests/machine.pp | 5 |
1 files changed, 4 insertions, 1 deletions
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}" } |