summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-02-09 19:33:12 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-02-09 19:35:24 +0100
commit81362a5bc465b064ad938e435685c4969bd0a570 (patch)
treea8db1b8231ee65f88dd6ced0657a06d0d558df56
parentNspawn create systemd mount files. (diff)
downloadnspawn-81362a5bc465b064ad938e435685c4969bd0a570.tar.gz
nspawn-81362a5bc465b064ad938e435685c4969bd0a570.tar.xz
Nspawn create machine.
-rw-r--r--manifests/machine.pp5
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}"
}