Source: resolv.cf
This bundle will generate this file from mustache templates:
- /etc/resolv.conf
If one of the files is changed then the following ""class"" will be set:
- sara_etc_resolv_conf
These templates are located in:
- templates/resolv
- templates/resolv/json
The bundle can be run via:
def.sara_services_enabled
"vars": {
"sara_services_enabled": [
"...",
"resolv",
"..."
]
}
The bundle will aways read the default.json file and extra json file(s) can be specified via:
- def.cf
vars:
any::
"resolv_json_files" slist => { "cua.json" };
The variable must be ""resolv_json_files"" and with this setup 1 extra json file will be merged.
if you want to debug this bundle set the DEBUG_resolv
class, eg:
-DDEBUG_resolv
See default.json what the default values are and which variables can be overriden.
Here are some examples how to use it:
- specify resolv configuration in def.cf:
vars:
"resolv_json_files" slist => { "cua.json" };
- override config settings in def.cf
vars:
"resolv" data => parsejson( '"options":[ "ndots:2" ]' );
- override config settings in <filename>.json:
"vars": {
"resolv": {
"json_files": [ "search_mail.json" ]
}
}
- override variable config setting in <filename>.json:
"resolv": {
"search": [
{ "domain": "ia.surfsara.nl" }
]
}