Skip to content
Snippets Groups Projects
Commit 3365b04c authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

fix: disable dns for NetworkManager

parent 87ee03b7
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