-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tell NetworkManager not to manage resolv.conf
- Done properly by Quattor - Without this mod, resolv.conf may be rebuild with an unappropriate content at each reboot Fixes #153
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
unique template os/network/network_manager; | ||
|
||
include 'os/network/network_manager_schema'; | ||
|
||
include 'components/metaconfig/config'; | ||
prefix '/software/components/metaconfig/services/{/etc/NetworkManager/conf.d/99-quattor.conf}'; | ||
'module' = 'tiny'; | ||
bind '/software/components/metaconfig/services/{/etc/NetworkManager/conf.d/99-quattor.conf}/contents' = network_manager_configuration; | ||
|
||
# Disable management of resolv.conf by NM | ||
'contents/main/dns' = 'none'; | ||
|
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,9 @@ | ||
declaration template os/network/network_manager_schema; | ||
|
||
type network_manager_config_main = { | ||
'dns' ? choice('none') | ||
}; | ||
|
||
type network_manager_configuration = { | ||
'main' : network_manager_config_main | ||
}; |