]> WPIA git - infra.git/blobdiff - modules/lxc/manifests/init.pp
add: TODO comment for future improvement
[infra.git] / modules / lxc / manifests / init.pp
index 0f4101d8da7aa7dfad0d53aae5190dcfee28e7d3..676558e1f7b7a3bd5d10105c37d79079aee17d83 100644 (file)
@@ -75,6 +75,7 @@ class lxc {
         } -> exec {"lxc-$contname-started":
             path => '/usr/bin',
             refreshonly   => true,
+            # TODO use `systemctl is-system-running --wait` in systemd v240+
             refresh   => "/usr/bin/lxc-stop -n $contname ; /usr/bin/lxc-start -dn $contname; /usr/bin/lxc-attach -n $contname -- bash -c 'while ! [[ -S /run/systemd/private ]]; do sleep 1; done'",
         }-> exec {"lxc-$contname-started1":
             command   => "/usr/bin/lxc-start -dn $contname; /usr/bin/lxc-attach -n $contname -- bash -c 'while ! [[ -S /run/systemd/private ]]; do sleep 1; done'",