Jelajahi Sumber

cambios de ejecución en kea

Luciano Andrade 6 tahun lalu
induk
melakukan
dcc6bfc35c
4 mengubah file dengan 40 tambahan dan 6 penghapusan
  1. 1 1
      1.3.0/Dockerfile
  2. 2 2
      1.4.0/Dockerfile
  3. 3 3
      conf/kea-ctrl-agent.conf
  4. 34 0
      conf/kea-dhcp4.conf-dist

+ 1 - 1
1.3.0/Dockerfile

@@ -51,4 +51,4 @@ RUN cd hook/dhcp && make
 
 COPY script.sh /opt/script.sh
 RUN chmod +x /opt/script.sh
-CMD /opt/script.sh
+CMD /usr/local/sbin/kea-dhcp4 -c /usr/local/etc/kea/kea-dhcp4.conf

+ 2 - 2
1.4.0/Dockerfile

@@ -51,5 +51,5 @@ RUN cd hook/dhcp && make
 
 COPY script.sh /opt/script.sh
 RUN chmod +x /opt/script.sh
-CMD /opt/script.sh
-HEALTHCHECK --interval=5s --timeout=3s CMD pgrep kea-dhcp4
+CMD /usr/local/sbin/kea-dhcp4 -c /usr/local/etc/kea/kea-dhcp4.conf
+#HEALTHCHECK --interval=5s --timeout=3s CMD pgrep kea-dhcp4

+ 3 - 3
conf/kea-ctrl-agent.conf

@@ -82,13 +82,13 @@
         ],
         // This specifies the severity of log messages to keep. Supported values
         // are: FATAL, ERROR, WARN, INFO, DEBUG
-        "severity": "INFO",
+        "severity": "DEBUG",
 
         // If DEBUG level is specified, this value is used. 0 is least verbose,
         // 99 is most verbose. Be cautious, Kea can generate lots and lots
         // of logs if told to do so.
-        "debuglevel": 0
+        "debuglevel": 99
     }
   ]
 }
-}
+}

+ 34 - 0
conf/kea-dhcp4.conf-dist

@@ -0,0 +1,34 @@
+{
+            "Dhcp4": {
+                "control-socket": {
+                    "socket-name": "\/tmp\/kea-dhcp4-ctrl.sock",
+                    "socket-type": "unix"
+                },
+                "subnet4": [
+                ],
+                "hooks-libraries": [
+                ],
+                "interfaces-config": {
+                    "interfaces": [
+                        "*"
+                    ]
+                }
+            },
+            "Logging": {
+                "loggers": [
+                    {
+                        "debuglevel": 99,
+                        "name": "kea-dhcp4",
+                        "output_options": [
+                            {
+                                "flush": true,
+                                "maxsize": 10240000,
+                                "maxver": 1,
+                                "output": "stdout"
+                            }
+                        ],
+                        "severity": "DEBUG"
+                    }
+                ]
+            }
+}