
- Execute test groups in serial to make sure no more than 2 database instance are created at the same time. - Remove some unneccesary tests - Remove unneeded datastore, e.g. 'Test_Datastore_1' - Remove unsupported trovestack subcommands - Move unsupported DIB elements to the 'deprecated-elements' folder - Decrease default value of 'agent_call_high_timeout' to 5min - Add initial_deplay for pooling task - Use socket file to connect with database instead of using localhost IP Change-Id: Ie5030a671fbeb453eafa6cbe04e08da7b52e33c9
30 lines
1.1 KiB
Bash
Executable File
30 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# CONTEXT: GUEST during CONSTRUCTION as ROOT
|
|
# PURPOSE: take "staged" ssh keys (see extra-data.d/62-ssh-key) and put them in the GUEST_USERS home directory
|
|
|
|
set -e
|
|
set -o xtrace
|
|
|
|
SSH_DIR="/home/${GUEST_USERNAME}/.ssh"
|
|
TMP_HOOKS_DIR="/tmp/in_target.d"
|
|
|
|
if [ -e "${TMP_HOOKS_DIR}/ssh-authorized-keys" ]; then
|
|
if [ ! -e ${SSH_DIR} ]; then
|
|
# this method worked more reliable in vmware fusion over doing sudo -Hiu ${GUEST_USERNAME}
|
|
mkdir ${SSH_DIR}
|
|
chown ${GUEST_USERNAME}:${GUEST_USERNAME} ${SSH_DIR}
|
|
fi
|
|
sudo -Hiu ${GUEST_USERNAME} dd of=${SSH_DIR}/authorized_keys conv=notrunc if=${TMP_HOOKS_DIR}/ssh-authorized-keys
|
|
sudo -Hiu ${GUEST_USERNAME} chmod 600 ${SSH_DIR}/authorized_keys
|
|
if [ ! -e "${SSH_DIR}/id_rsa" ]; then
|
|
sudo -Hiu ${GUEST_USERNAME} dd of=${SSH_DIR}/id_rsa if=${TMP_HOOKS_DIR}/id_rsa
|
|
# perms have to be right on this file for ssh to work
|
|
sudo -Hiu ${GUEST_USERNAME} chmod 600 ${SSH_DIR}/id_rsa
|
|
sudo -Hiu ${GUEST_USERNAME} dd of=${SSH_DIR}/id_rsa.pub if=${TMP_HOOKS_DIR}/id_rsa.pub
|
|
fi
|
|
else
|
|
echo "SSH Keys were not staged by host"
|
|
exit -1
|
|
fi
|