Various fixes
This commit is contained in:
parent
3769192fec
commit
29415f77d9
@ -19,7 +19,6 @@ cleanuppaths() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cleanupssh() {
|
cleanupssh() {
|
||||||
set -x
|
|
||||||
for host in ${!hosts[*]}; do
|
for host in ${!hosts[*]}; do
|
||||||
ssh-keygen -R ${hosts[$host]} &>/dev/null
|
ssh-keygen -R ${hosts[$host]} &>/dev/null
|
||||||
done
|
done
|
||||||
|
@ -13,6 +13,10 @@ perror() {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sshcmd() {
|
||||||
|
ssh -o StrictHostKeyChecking=no $*
|
||||||
|
}
|
||||||
|
|
||||||
dls() {
|
dls() {
|
||||||
path=$1
|
path=$1
|
||||||
shift
|
shift
|
||||||
|
@ -21,7 +21,7 @@ checkup() {
|
|||||||
while :
|
while :
|
||||||
do
|
do
|
||||||
pinfo "Checking availability of node $host..."
|
pinfo "Checking availability of node $host..."
|
||||||
if true | ssh root@${hosts[$host]};
|
if true | sshcmd root@${hosts[$host]};
|
||||||
then
|
then
|
||||||
pinfo "VM $host is up!"
|
pinfo "VM $host is up!"
|
||||||
break
|
break
|
||||||
@ -39,7 +39,7 @@ checkup() {
|
|||||||
|
|
||||||
start_control_plane() {
|
start_control_plane() {
|
||||||
for host in ${!hosts[*]}; do
|
for host in ${!hosts[*]}; do
|
||||||
ssh root@${hosts[$host]} << EOF
|
sshcmd root@${hosts[$host]} << EOF
|
||||||
if ls /etc/kubernetes/manifests.static/* &>/dev/null ; then
|
if ls /etc/kubernetes/manifests.static/* &>/dev/null ; then
|
||||||
mv /etc/kubernetes/manifests.static/* /var/lib/kubelet/manifests/
|
mv /etc/kubernetes/manifests.static/* /var/lib/kubelet/manifests/
|
||||||
fi
|
fi
|
||||||
|
@ -24,5 +24,3 @@ QEMU_VM_MEM=8096
|
|||||||
# Token file for dls
|
# Token file for dls
|
||||||
tknfile=".dls_adm_token"
|
tknfile=".dls_adm_token"
|
||||||
|
|
||||||
# SSH command args
|
|
||||||
SSH_CMD="ssh -o StrictHostKeyChecking=no"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user