diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-02-09 19:29:11 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-02-09 19:30:55 +0100 |
commit | bb775acc6fccb0e5769bbb17d91f1f7433a8dd2d (patch) | |
tree | 3e1165376eb31ac07ba5a9267735fd502e63f278 | |
parent | Rename, and fail nicer on nspawn fact. (diff) | |
download | nspawn-bb775acc6fccb0e5769bbb17d91f1f7433a8dd2d.tar.gz nspawn-bb775acc6fccb0e5769bbb17d91f1f7433a8dd2d.tar.xz |
Nspawn create systemd mount files.
-rw-r--r-- | manifests/machine.pp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/machine.pp b/manifests/machine.pp index a22855b..cb7c066 100644 --- a/manifests/machine.pp +++ b/manifests/machine.pp @@ -49,6 +49,10 @@ define nspawn::machine ( # TODO deep merge? } + $nspawn_opts + systemd_mount { "/var/lib/machines/${machine}": + what => "/dev/VolGroup/vm-${machine}" + } + file { "/etc/systemd/nspawn/${machine}.nspawn": ensure => file, content => epp('nspawn/unit_file.epp', { |