diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index adfee9baebd24640a7f1f92c552ee742442b694b..37722446ccfea44822e25cc965cac14b1f76aaed 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,6 +52,7 @@ create-docker-worker: - sleep 10 # ensure that next command reaches the new server, prevents host key problems - LOCAL_IP=`openstack port list --server $INSTANCE_ID --network internal -c 'Fixed IP Addresses'` - echo $LOCAL_IP + #TODO parse the LOCAL_IP and have the value as a CI/CD artifact for the next update job # do the mount /dev/vdb stuff - openstack server add volume $INSTANCE_ID $VOLUME_ID - sleep 20 # apparently it may take some time until the volume is available to the OS @@ -83,4 +84,9 @@ update-dls-testing: - web # and master <<: *ssh_setup script: - - echo "$SSH_HOST_PRIVATE_KEY_DWORKER" | ssh -oStrictHostKeyChecking=accept-new airflow@$DLS_PRODUCTION_IP "sudo tee /home/airflow/testme.txt" \ No newline at end of file + - ssh -oStrictHostKeyChecking=accept-new airflow@$DLS_PRODUCTION_IP "sudo touch /home/airflow/testme.txt" + #TODO + # - sed -i ".bak" "/134.94.199.45/d" known_hosts ---> with proper escaping of the dots:) + # - change the host of the airflow connection "docker_worker" to the newly retrieved LOCAL_IP + +#TODO have a fall back stage in case of failure \ No newline at end of file diff --git a/cloudinit.yml b/cloudinit.yml index a5901d21c9b2121d2729a03b0525e5b892d7b4e5..49b777683bac1c3b0e9d872cdc921ecdc78b07d7 100644 --- a/cloudinit.yml +++ b/cloudinit.yml @@ -25,8 +25,8 @@ packages: # By default, (most) ssh host keys are printed to the console. Setting # emit_keys_to_console to false suppresses this output. -# ssh: -# emit_keys_to_console: false +ssh: + emit_keys_to_console: false users: - name: cboettcher