Add ssh to target node to deploy.vitastor - without it it always tried to deploy VMs on oned host
This commit is contained in:
@@ -4,12 +4,15 @@
|
|||||||
# Copyright (c) Vitaliy Filippov, 2024+
|
# Copyright (c) Vitaliy Filippov, 2024+
|
||||||
# License: Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0
|
# License: Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
DRIVER_PATH=$(dirname $0)
|
DRIVER_PATH=$(dirname $0)
|
||||||
DEP_FILE=$1
|
DEP_FILE=$1
|
||||||
DEP_FILE_LOCATION=$(dirname $DEP_FILE)
|
DEP_FILE_LOCATION=$(dirname $DEP_FILE)
|
||||||
|
HOST=$2
|
||||||
|
|
||||||
cat > $DEP_FILE
|
cat > $DEP_FILE
|
||||||
|
|
||||||
python3 $DRIVER_PATH/deploy_vitastor.py $DEP_FILE $DEP_FILE_LOCATION/vm.xml
|
python3 $DRIVER_PATH/deploy_vitastor.py $DEP_FILE $DEP_FILE_LOCATION/vm.xml
|
||||||
|
|
||||||
cat $DEP_FILE | $DRIVER_PATH/deploy $@
|
cat "$DEP_FILE" | ssh "$HOST" "'${SCRIPTS_REMOTE_DIR:-/var/tmp/one}/vmm/kvm/deploy' '$DEP_FILE'"
|
||||||
|
|||||||
Reference in New Issue
Block a user