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

Merge branch 'fix-resolv-conf' into 'feat-hpc-factory'

fix: disable dns updated by NetworkManager

See merge request !135
parents 87ee03b7 3365b04c
No related branches found
No related tags found
2 merge requests!135fix: disable dns updated by NetworkManager,!117This MR merges the feat-hpc-factory branch, which was focused on building and deploying proxy images for the COD cluster.
...@@ -145,6 +145,11 @@ deploy_http_proxy_node: ...@@ -145,6 +145,11 @@ deploy_http_proxy_node:
- | - |
cat > user_data.txt <<EOF cat > user_data.txt <<EOF
#!/bin/bash #!/bin/bash
cat >> /etc/NetworkManager/conf.d/90-dns-none.conf<<EEOF
[main]
dns=none
EEOF
systemctl reload NetworkManager
echo "$DEV_KEY" >> /root/.ssh/authorized_keys echo "$DEV_KEY" >> /root/.ssh/authorized_keys
ip route replace default via ${DEFAULT_GATEWAY_IP} dev eth0 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}
...@@ -184,6 +189,11 @@ deploy_ssh_proxy_node: ...@@ -184,6 +189,11 @@ deploy_ssh_proxy_node:
- | - |
cat > user_data.txt <<EOF cat > user_data.txt <<EOF
#!/bin/bash #!/bin/bash
cat >> /etc/NetworkManager/conf.d/90-dns-none.conf<<EEOF
[main]
dns=none
EEOF
systemctl reload NetworkManager
echo "$DEV_KEY" >> /root/.ssh/authorized_keys echo "$DEV_KEY" >> /root/.ssh/authorized_keys
ip route replace default via ${DEFAULT_GATEWAY_IP} dev eth0 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}
......
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