Skip to content
Snippets Groups Projects
Commit d58a3531 authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

feat: Replace default gateway to allow login

The instance creation with internal port attached was causing issues
with login because the default gateway was set to internal network
gateway. This will only allow login via headnode but not the host.
This commit will fix that issue by giving a way to define the gw ip
for default route.
parent 5d6b1f15
No related branches found
No related tags found
No related merge requests found
......@@ -149,6 +149,7 @@ deploy_http_proxy_node:
cat > user_data.txt <<EOF
#!/bin/bash
echo "$DEV_KEY" >> /root/.ssh/authorized_keys
ip route replace default via ${DEFAULT_GATEWAY_IP} dev eth0
git clone ${CI_REPOSITORY_URL} /tmp/${CI_PROJECT_NAME}
cd /tmp/${CI_PROJECT_NAME}
git checkout ${CI_COMMIT_REF_NAME}
......@@ -197,6 +198,7 @@ deploy_ssh_proxy_node:
cat > user_data.txt <<EOF
#!/bin/bash
echo "$DEV_KEY" >> /root/.ssh/authorized_keys
ip route replace default via ${DEFAULT_GATEWAY_IP} dev eth0
git clone ${CI_REPOSITORY_URL} /tmp/${CI_PROJECT_NAME}
cd /tmp/${CI_PROJECT_NAME}
git checkout ${CI_COMMIT_REF_NAME}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment