migrate lxc container to ganeti
[sysadmin-cookbook] / recepies / ganeti / migrate-lxc / 0-lxc.sh
diff --git a/recepies/ganeti/migrate-lxc/0-lxc.sh b/recepies/ganeti/migrate-lxc/0-lxc.sh
new file mode 100644 (file)
index 0000000..523da2f
--- /dev/null
@@ -0,0 +1,9 @@
+export lxc=prod
+
+test -d lxc || mkdir lxc
+
+ssh_lxc() {
+       log=`basename $1`
+       ssh root@$lxc $* | tee lxc/$log
+}
+