Skip to content

Files

Latest commit

 

History

History
80 lines (63 loc) · 1.57 KB

resolv.md

File metadata and controls

80 lines (63 loc) · 1.57 KB

resolv

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

Usage

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.

DEBUG

if you want to debug this bundle set the DEBUG_resolv class, eg:

  • -DDEBUG_resolv

def.cf/json

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" }
    ]
}