Commit 5b96eece authored by Martin Vala's avatar Martin Vala
Browse files

Merge branch '53-variable-for-n-ssh-connections-at-time-for-pssh' into 'master'

Resolve "Variable for N ssh connections at time for pssh"

Closes #53

See merge request !28
parents 52e6634c b23d4c0b
Pipeline #531127 passed with stage
in 54 seconds
Name: eos-docker-utils
Version: 1.0.9
Version: 1.0.10
Release: 1%{?dist}
Summary: EOS docker utils
License: LGPL v3+
......
......@@ -53,24 +53,19 @@ function eosDockerSSHSetHosts() {
}
function eosDockerSSHStart() {
$ED_PSSH_CMD $ED_ROOT_DIR/bin/eos-docker pull _single
}
function eosDockerSSHStart() {
$ED_PSSH_CMD $ED_ROOT_DIR/bin/eos-docker start _single
$ED_PSSH_CMD $ED_DOCKER_SSH_N $ED_ROOT_DIR/bin/eos-docker start _single
}
function eosDockerSSHStop() {
$ED_PSSH_CMD $ED_ROOT_DIR/bin/eos-docker stop _single
$ED_PSSH_CMD $ED_DOCKER_SSH_N $ED_ROOT_DIR/bin/eos-docker stop _single
}
function eosDockerSSHClean() {
$ED_PSSH_CMD $ED_ROOT_DIR/bin/eos-docker clean _single
$ED_PSSH_CMD $ED_DOCKER_SSH_N $ED_ROOT_DIR/bin/eos-docker clean _single
}
function eosDockerSSHUpdate() {
$ED_PSSH_CMD $ED_ROOT_DIR/bin/eos-docker update _single
$ED_PSSH_CMD $ED_DOCKER_SSH_N $ED_ROOT_DIR/bin/eos-docker update _single
}
function eosDockerSSHPull() {
......@@ -78,7 +73,7 @@ function eosDockerSSHPull() {
}
function eosDockerSSHFstDiskSync() {
$ED_PSSH_CMD $ED_ROOT_DIR/bin/eos-docker disk-sync _single
$ED_PSSH_CMD $ED_DOCKER_SSH_N $ED_ROOT_DIR/bin/eos-docker disk-sync _single
}
function eosDockerSSHCheck() {
......@@ -107,6 +102,9 @@ fi
eosDockerSSHSetHosts $*
ED_PSSH_N=""
[ -n $ED_DOCKER_SSH_N ] && ED_PSSH_N="-p $ED_DOCKER_SSH_N"
ED_PSSH_CMD="pssh $ED_PSSH_HOSTS -i -t 0 -o $ED_ROOT_DIR/out/pssh -O StrictHostKeyChecking=no"
ED_RSYNC_CMD="prsync $ED_PSSH_HOSTS -o $ED_ROOT_DIR/out/prsync -O StrictHostKeyChecking=no -a --recursive"
ED_PSCP_CMD="pscp.pssh $ED_PSSH_HOSTS -r -t 0 -o $ED_ROOT_DIR/out/pscp -O StrictHostKeyChecking=no"
......
......@@ -43,3 +43,6 @@ export ED_LOGGER_THEME=light"
export ED_DOCKER_ARGS_BEGIN="--privileged --net=host"
export ED_DOCKER_ARGS_END=""
# N parallel ssh using 'pssh -p N'. Value "" means unlimited (or default pssh)
export ED_DOCKER_SSH_N=""
# export ED_DOCKER_SSH_N="1"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment