Verified Commit 26257829 authored by p.jbowden's avatar p.jbowden
Browse files

fix config copy to UoW NFS

- private key added to env manually
parent a89b6f32
Pipeline #254917 passed with stages
in 1 minute and 17 seconds
......@@ -235,22 +235,22 @@ start-UoW:
SSH_HOST_KEY: "134.76.17.106 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHkusenvNxN8rkZg+2wgjagfhuzzRqaRakEqYGeHYBcY"
SSH_USER: "gitlab"
UOW_NFS_SSH_HOST: 161.74.31.92
UOW_NFS_SSH_HOST_KEY: "|1|5PYvcd7fxyjOtK2ldux059QqcZU=|+J/WAukAV1DMSXXPGWkMxPe8UmU= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIyw5xFRsjRBCpgrL1oLGGsUT/gAeskiRQnU/yKFm6ihkWBvw3cyhUCL8GvcwSDBxfgur8u3TJo9ApyQFfWo9dw="
UOW_NFS_SSH_HOST_KEY: "161.74.31.92 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIyw5xFRsjRBCpgrL1oLGGsUT/gAeskiRQnU/yKFm6ihkWBvw3cyhUCL8GvcwSDBxfgur8u3TJo9ApyQFfWo9dw="
UOW_NFS_SSH_USER: "ubuntu"
# SSH_USER_PRIVATE_KEY is set by CI environment variable
WORK_DIR: "/usr/local/snet-asclepios-deployment"
UOW_NFS_SHARE_DIR: "/srv/nfs4/share"
COMMAND: |
echo "$UOW_NFS_SSH_HOST_KEY" | sudo tee "/root/.ssh/known_hosts" > /dev/null
# echo "$UOW_PERSISTANCE_SSH_HOST_KEY" | sudo tee "/root/.ssh/known_hosts" > /dev/null
sudo scp -i ~cloud/.ssh/id_rsa "$WORK_DIR/conf/openid-provider.properties" "$UOW_NFS_SSH_USER@$UOW_NFS_SSH_HOST:$UOW_NFS_SHARE_DIR/conf"
sudo scp -i ~cloud/.ssh/id_rsa "$WORK_DIR/conf/zuul.application.yml" "${UOW_NFS_SSH_USER}@${UOW_NFS_SSH_HOST}:${UOW_NFS_SHARE_DIR}/conf"
sudo scp -i ~cloud/.ssh/id_rsa "$WORK_DIR/conf/zuul.authorization-client.properties" "${UOW_NFS_SSH_USER}@${UOW_NFS_SSH_HOST}:${UOW_NFS_SHARE_DIR}/conf"
sudo scp -i ~cloud/.ssh/id_rsa "$WORK_DIR/certs/common/common-truststore.p12" "${UOW_NFS_SSH_USER}@${UOW_NFS_SSH_HOST}:${UOW_NFS_SHARE_DIR}/certs/common"
sudo scp -i ~cloud/.ssh/id_rsa "$WORK_DIR/certs/abac-server/abac-server-keystore.p12" "${UOW_NFS_SSH_USER}@${UOW_NFS_SSH_HOST}:${UOW_NFS_SHARE_DIR}/certs/abac-server"
sudo scp -i ~cloud/.ssh/id_rsa -r "$WORK_DIR/policies" "${UOW_NFS_SSH_USER}@${UOW_NFS_SSH_HOST}:${UOW_NFS_SHARE_DIR}/policies"
sudo scp -i "$WORK_DIR/.env.d/UOW_NFS_ID_RSA" "$WORK_DIR/conf/openid-provider.properties" "$UOW_NFS_SSH_USER@$UOW_NFS_SSH_HOST:$UOW_NFS_SHARE_DIR/conf"
sudo scp -i "$WORK_DIR/.env.d/UOW_NFS_ID_RSA" "$WORK_DIR/conf/zuul.application.yml" "${UOW_NFS_SSH_USER}@${UOW_NFS_SSH_HOST}:${UOW_NFS_SHARE_DIR}/conf"
sudo scp -i "$WORK_DIR/.env.d/UOW_NFS_ID_RSA" "$WORK_DIR/conf/zuul.authorization-client.properties" "${UOW_NFS_SSH_USER}@${UOW_NFS_SSH_HOST}:${UOW_NFS_SHARE_DIR}/conf"
sudo scp -i "$WORK_DIR/.env.d/UOW_NFS_ID_RSA" "$WORK_DIR/certs/common/common-truststore.p12" "${UOW_NFS_SSH_USER}@${UOW_NFS_SSH_HOST}:${UOW_NFS_SHARE_DIR}/certs/common"
sudo scp -i "$WORK_DIR/.env.d/UOW_NFS_ID_RSA" "$WORK_DIR/certs/abac-server/abac-server-keystore.p12" "${UOW_NFS_SSH_USER}@${UOW_NFS_SSH_HOST}:${UOW_NFS_SHARE_DIR}/certs/abac-server"
sudo scp -i "$WORK_DIR/.env.d/UOW_NFS_ID_RSA" -r "$WORK_DIR/policies" "${UOW_NFS_SSH_USER}@${UOW_NFS_SSH_HOST}:${UOW_NFS_SHARE_DIR}/policies"
# echo "$UOW_PERSISTANCE_SSH_HOST_KEY" | sudo tee "/root/.ssh/known_hosts" > /dev/null
# sudo scp -i cloud/.ssh/id_rsa "WORKDIR/conf/xnat.sql" "${UOW_PERSISTANCE_SSH_USER}@${UOW_PERSISTANCE_SSH_HOST}:/srv/data/xnat-db-docker-entrypoint-initdb.d/001-xnat.sql
cd $WORK_DIR/micado && sudo ./4-update-adt.sh | sed '1,/^Updating/d' | jq .message | grep "Application asclepios-sleep successfully updated"
......
Markdown is supported
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