datasrc.spec.pre.in 3.0 KB

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