]> WPIA git - infra.git/commitdiff
Merge changes I3d69d1c6,I8b0fa62a,I668a5e8d,Iaf0e30fa
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Tue, 8 Jan 2019 21:42:27 +0000 (22:42 +0100)
committerGerrit Code Review <gigi-system@dogcraft.de>
Tue, 8 Jan 2019 21:42:27 +0000 (22:42 +0100)
* changes:
  add: motion system from source
  add: virtual resource collectors for nginx+pg
  chg: use explicit resources for nginx-binds
  chg: extract lxc-bind-mounts to own resources

manager/setup
modules/lxc/manifests/init.pp

index 0c5643b1ba0e13f6e3a63a0a7509a050147131e1..7f38205770300e1ffce97f120b11cdaa9018882d 100755 (executable)
@@ -36,7 +36,7 @@ function reset_vm {
 }
 function update {
     title 'S1: apt-get; clone'
-    ssh_target -t "( sudo apt-get update | cat ) && ( DEBIAN_FRONTEND=noninteractive sudo -E apt-get upgrade -o Dpkg::Options::=\"--force-confold\" -y | cat ) && ( sudo apt-get install -y git curl $devPkgs | cat )"
+    ssh_target -t "{ sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo -E apt-get upgrade -o Dpkg::Options::=\"--force-confold\" -y && sudo apt-get install -y git curl $devPkgs; } | cat"
     echo "Git init"
     ssh_target -t '[[ -d .git ]] || git init;'
     echo "Git push"
index 3693966f0f0ef965356efe63692dc0a2929880ef..bf71013fbbae9a5ef4a9799089447a70f2d6d97e 100644 (file)
@@ -89,6 +89,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'",