-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use NetworkManager to manage resolv.conf in FedoraCoreOS (#6291)
- Loading branch information
Showing
4 changed files
with
66 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
- name: NetworkManager | Add nameservers to NM configuration | ||
ini_file: | ||
path: /etc/NetworkManager/system-connections/default_connection.nmconnection | ||
section: ipv4 | ||
option: dns | ||
value: "{{ ( coredns_server + nameservers|d([]) + cloud_resolver|d([])) | unique | join(';') }}" | ||
mode: '0600' | ||
backup: yes | ||
notify: Preinstall | update resolvconf for Fedora CoreOS | ||
|
||
- name: NetworkManager | Add DNS search to NM configuration | ||
ini_file: | ||
path: /etc/NetworkManager/system-connections/default_connection.nmconnection | ||
section: ipv4 | ||
option: dns-search | ||
value: "{{ ([ 'default.svc.' + dns_domain, 'svc.' + dns_domain ] + searchdomains|default([])) | join(';') }}" | ||
mode: '0600' | ||
backup: yes | ||
notify: Preinstall | update resolvconf for Fedora CoreOS | ||
|
||
- name: NetworkManager | Add DNS options to NM configuration | ||
ini_file: | ||
path: /etc/NetworkManager/system-connections/default_connection.nmconnection | ||
section: ipv4 | ||
option: dns-options | ||
value: "ndots:{{ ndots }};timeout:2;attempts:2;" | ||
mode: '0600' | ||
backup: yes | ||
notify: Preinstall | update resolvconf for Fedora CoreOS | ||
|
||
- name: NetworkManager | Ignore DNS auto configuration | ||
ini_file: | ||
path: /etc/NetworkManager/system-connections/default_connection.nmconnection | ||
section: ipv4 | ||
option: ignore-auto-dns | ||
value: 'true' | ||
mode: '0600' | ||
backup: yes | ||
notify: Preinstall | update resolvconf for Fedora CoreOS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters