Signed-off-by: Thilo Fromm <thilo.fromm@profitbricks.com>
}
# ----
+prepare() {
+ chmod 600 id_rsa.storage-auto-deploy
+}
+# ----
+
+
rexec() {
local srv="$1" ; shift
local storage_ip="$1"
local storage_ipmi="$2"
+ prepare
+
log " Resetting $storage_ip and booting from PXE (via $storage_ipmi)"
ipmi "$storage_ipmi" chassis bootdev pxe || { log " FAILED to set bootdev pxe via ipmi."; return 1; }
ipmi "$storage_ipmi" chassis power reset || { log " FAILED to reset server via ipmi."; return 1; }