Skip to content
Snippets Groups Projects
Commit fa2ce373 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 494f22d8
No related branches found
No related tags found
No related merge requests found
Pipeline #11911 failed with stage
in 27 seconds
...@@ -149,6 +149,7 @@ deploy_http_proxy_node: ...@@ -149,6 +149,7 @@ deploy_http_proxy_node:
cat > user_data.txt <<EOF cat > user_data.txt <<EOF
#!/bin/bash #!/bin/bash
echo "$DEV_KEY" >> /root/.ssh/authorized_keys 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} git clone ${CI_REPOSITORY_URL} /tmp/${CI_PROJECT_NAME}
cd /tmp/${CI_PROJECT_NAME} cd /tmp/${CI_PROJECT_NAME}
git checkout ${CI_COMMIT_REF_NAME} git checkout ${CI_COMMIT_REF_NAME}
...@@ -197,6 +198,7 @@ deploy_ssh_proxy_node: ...@@ -197,6 +198,7 @@ deploy_ssh_proxy_node:
cat > user_data.txt <<EOF cat > user_data.txt <<EOF
#!/bin/bash #!/bin/bash
echo "$DEV_KEY" >> /root/.ssh/authorized_keys 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} git clone ${CI_REPOSITORY_URL} /tmp/${CI_PROJECT_NAME}
cd /tmp/${CI_PROJECT_NAME} cd /tmp/${CI_PROJECT_NAME}
git checkout ${CI_COMMIT_REF_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