datasrc.spec.pre.in 2.84 KB
Newer Older
1 2 3 4 5 6 7 8 9
{
    "module_spec": {
        "module_name": "data_sources",
        "module_description": "The sources of authoritative DNS data",
        "config_data": [
            {
                "item_name": "classes",
                "item_type": "named_set",
                "item_optional": false,
10
                "item_default": {
11 12 13 14 15 16 17 18
                    "IN": [
                        {
                            "type": "sqlite3",
                            "params": {
                                "database_file": "@@LOCALSTATEDIR@@/@PACKAGE@/zone.sqlite3"
                            }
                        }
                    ],
19 20 21 22 23 24 25 26
                    "CH": [
                        {
                            "type": "static",
                            "cache-enable": false,
                            "params": "@@PKGDATADIR@@/static.zone"
                        }
                    ]
                },
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
                "named_set_item_spec": {
                    "item_name": "class",
                    "item_type": "list",
                    "item_optional": false,
                    "item_default": [],
                    "list_item_spec": {
                        "item_name": "source",
                        "item_type": "map",
                        "item_optional": false,
                        "item_default": {},
                        "map_item_spec": [
                            {
                                "item_name": "type",
                                "item_type": "string",
                                "item_optional": false,
                                "item_default": ""
                            },
                            {
                                "item_name": "params",
                                "item_type": "any",
                                "item_optional": false,
                                "item_default": null
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
                            },
                            {
                                "item_name": "cache-enable",
                                "item_type": "boolean",
                                "item_optional": false,
                                "item_default": false
                            },
                            {
                                "item_name": "cache-zones",
                                "item_type": "list",
                                "item_optional": true,
                                "list_item_spec": {
                                    "item_name": "zone",
                                    "item_type": "string",
                                    "item_optional": false,
                                    "item_default": ""
                                }
66 67 68 69 70 71 72 73 74
                            }
                        ]
                    }
                }
            }
        ],
        "commands": []
    }
}