split host configure to acpi and console
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 12 Jan 2014 16:07:52 +0000 (16:07 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 12 Jan 2014 16:07:52 +0000 (16:07 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@310 191e9f34-6774-4a6d-acfc-7664dacd4a2a

recepies/ganeti/migrate-lxc/0-ganeti.sh
recepies/ganeti/migrate-lxc/H-host-configure.sh [deleted file]

index 12294ad..226b6e9 100644 (file)
@@ -10,5 +10,9 @@ test -d ganeti || mkdir ganeti
 
 ssh_master() {
        log=`basename $1`
-       ssh root@$master $* | tee ganeti/$log
+       if [ "$1" == "gnt-instance" ] ; then
+               ssh root@$master $*
+       else
+               ssh root@$master $* | tee ganeti/$log
+       fi
 }
diff --git a/recepies/ganeti/migrate-lxc/H-host-configure.sh b/recepies/ganeti/migrate-lxc/H-host-configure.sh
deleted file mode 100755 (executable)
index 4595621..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh -x
-
-. ./0-host.sh
-
-#ssh_host apt-get install --reinstall -y initscripts acpid
-ssh_host lsmod | grep button
-
-ssh_host cat /etc/inittab | tee $host/inittab
-grep -v ^# $host/inittab | grep console || echo "1:2345:respawn:/sbin/getty 38400 console" | tee -a $host/inittab && \
-       rsync $host/inittab root@$host:/etc/
-
-ssh_host bak diff /etc/inittab
-ssh_host init q