kea-ctrl-agent.conf 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. // This is a basic configuration for the Kea Control Agent.
  2. //
  3. // This is just a very basic configuration. Kea comes with large suite (over 30)
  4. // of configuration examples and extensive Kea User's Guide. Please refer to
  5. // those materials to get better understanding of what this software is able to
  6. // do. Comments in this configuration file sometimes refer to sections for more
  7. // details. These are section numbers in Kea User's Guide. The version matching
  8. // your software should come with your Kea package, but it is also available
  9. // on Kea web page (http://kea.isc.org, click User's Guide, direct link for
  10. // stable version is http://kea.isc.org/docs/kea-guide.html).
  11. //
  12. // This configuration file contains only Control Agent's configuration.
  13. // If configurations for other Kea services are also included in this file they
  14. // are ignored by the Control Agent.
  15. {
  16. // This is a basic configuration for the Kea Control Agent.
  17. // RESTful interface to be available at http://127.0.0.1:8080/
  18. "Control-agent": {
  19. "http-host": "0.0.0.0",
  20. "http-port": 8080,
  21. // Specify location of the files to which the Control Agent
  22. // should connect to forward commands to the DHCPv4 and DHCPv6
  23. // server via unix domain socket.
  24. "control-sockets": {
  25. "dhcp4": {
  26. "socket-type": "unix",
  27. "socket-name": "/tmp/kea-dhcp4-ctrl.sock"
  28. },
  29. "dhcp6": {
  30. "socket-type": "unix",
  31. "socket-name": "/tmp/kea-dhcp6-ctrl.sock"
  32. }
  33. },
  34. // Specify hooks libraries that are attached to the Control Agent.
  35. // Such hooks libraries should support 'control_command_receive'
  36. // hook point. This is currently commented out because it has to
  37. // point to the existing hooks library. Otherwise the Control
  38. // Agent will fail to start.
  39. "hooks-libraries": [
  40. // {
  41. // "library": "/opt/local/control-agent-commands.so",
  42. // "parameters": {
  43. // "param1": "foo"
  44. // }
  45. // }
  46. ]
  47. },
  48. // Logging configuration starts here. Kea uses different loggers to log various
  49. // activities. For details (e.g. names of loggers), see Chapter 18.
  50. "Logging":
  51. {
  52. "loggers": [
  53. {
  54. // This specifies the logging for Control Agent daemon.
  55. "name": "kea-ctrl-agent",
  56. "output_options": [
  57. {
  58. // Specifies the output file. There are several special values
  59. // supported:
  60. // - stdout (prints on standard output)
  61. // - stderr (prints on standard error)
  62. // - syslog (logs to syslog)
  63. // - syslog:name (logs to syslog using specified name)
  64. // Any other value is considered a name of a time
  65. "output": "@localstatedir@/log/kea-ctrl-agent.log"
  66. // This governs whether the log output is flushed to disk after
  67. // every write.
  68. // "flush": false,
  69. // This specifies the maximum size of the file before it is
  70. // rotated.
  71. // "maxsize": 1048576,
  72. // This specifies the maximum number of rotated files to keep.
  73. // "maxver": 8
  74. }
  75. ],
  76. // This specifies the severity of log messages to keep. Supported values
  77. // are: FATAL, ERROR, WARN, INFO, DEBUG
  78. "severity": "DEBUG",
  79. // If DEBUG level is specified, this value is used. 0 is least verbose,
  80. // 99 is most verbose. Be cautious, Kea can generate lots and lots
  81. // of logs if told to do so.
  82. "debuglevel": 99
  83. }
  84. ]
  85. }
  86. }