2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#3586] updated documentation

This commit is contained in:
Razvan Becheriu
2024-10-04 18:13:17 +03:00
parent 17b0dcfadb
commit 264b7100cb
40 changed files with 432 additions and 186 deletions

View File

@@ -342,11 +342,11 @@
"parameters": { }
},
{
// The MySql host backend hook library required for host storage.
// The MySQL host backend hook library required for host storage.
"library": "/opt/lib/kea/hooks/libdhcp_mysql.so"
},
{
// The PgSql host backend hook library required for host storage.
// The PostgreSQL host backend hook library required for host storage.
"library": "/opt/lib/kea/hooks/libdhcp_pgsql.so"
}
],

View File

@@ -436,11 +436,11 @@
"parameters": { }
},
{
// The MySql host backend hook library required for host storage.
// The MySQL host backend hook library required for host storage.
"library": "/opt/lib/kea/hooks/libdhcp_mysql.so"
},
{
// The PgSql host backend hook library required for host storage.
// The PostgreSQL host backend hook library required for host storage.
"library": "/opt/lib/kea/hooks/libdhcp_pgsql.so"
}
],

View File

@@ -45,6 +45,13 @@
// "retry-on-startup": false,
// "connect-timeout": 3
// },
// Since Kea.2.7.4, the libdhcp_mysql.so hook library must be loaded in order to
// store leases in the MySQL Lease Database Backend.
// Specify the lease backend hook library location.
// {
// // the MySQL lease backend hook library required for lease storage.
// "library": "/opt/lib/kea/hooks/libdhcp_mysql.so"
// },
// 3. PostgreSQL backend. Leases will be stored in PostgreSQL database. Make
// sure it is up, running and properly initialized. See kea-admin documentation
@@ -66,6 +73,13 @@
// "retry-on-startup": false,
// "connect-timeout": 3
// },
// Since Kea.2.7.4, the libdhcp_pgsql.so hook library must be loaded in order to
// store leases in the PostgreSQL Lease Database Backend.
// Specify the lease backend hook library location.
// {
// // the PostgreSQL lease backend hook library required for lease storage.
// "library": "/opt/lib/kea/hooks/libdhcp_pgsql.so"
// },
// Addresses will be assigned with a lifetime of 4000 seconds.
"valid-lifetime": 4000,

View File

@@ -1,6 +1,6 @@
// This is an example configuration file for the DHCPv4 server in Kea.
// It demonstrates how to enable Kea Configuration Backend using MySQL.
// It requires that libdhcp_mysql_cb.so library is available and
// It requires that libdhcp_mysql.so library is available and
// optionally libdhcp_cb_cmds.so hook library.
{ "Dhcp4":
@@ -23,8 +23,11 @@
},
// This parameter controls how the server accesses the configuration
// database. Currently only one database type is available - "mysql".
// It requires that the libdhcp_mysql_cb.so hook library is loaded.
// database. Currently only two database types are available - "mysql" and
// "postgresql".
// Using "mysql" requires that the libdhcp_mysql.so hook library is loaded.
// If using "postgresql", then loading libdhcp_pgsql.so hook library is
// required.
"config-control": {
// A list of database backends to connect to. Currently, it is limited
// to a single backend.
@@ -57,11 +60,16 @@
// Hooks libraries that enable configuration backend are loaded.
"hooks-libraries": [
// The libdhcp_mysql_cb.so is required to use MySQL Configuration
// The libdhcp_mysql.so is required to use MySQL Configuration
// Backend.
{
"library": "/usr/local/lib/kea/hooks/libdhcp_mysql_cb.so"
"library": "/usr/local/lib/kea/hooks/libdhcp_mysql.so"
}
// If using PostgreSQL Configuration Backend, the "libdhcp_pgsql.so" is
// required.
// {
// "library": "/usr/local/lib/kea/hooks/libdhcp_pgsql.so"
// }
// The libdhcp_cb_cmds.so is optional. It allows for managing the
// configuration in the database. If this library is not loaded,
// the configuration can be managed directly using available

View File

@@ -69,11 +69,12 @@
"key-file": "my-key",
"cipher-list": "AES"
},
// Since Kea.2.7.4, the libdhcp_mysql.so hook library must be loaded in order to
// store host reservations in the MySQL Host Database Backend.
// Specify the host backend hook library location.
"hooks-libraries": [
{
// the MySql host backend hook library required for host storage.
// the MySQL host backend hook library required for host storage.
"library": "/opt/lib/kea/hooks/libdhcp_mysql.so"
}
],

View File

@@ -67,11 +67,12 @@
"host": "localhost"
}
],
// Since Kea.2.7.4, the libdhcp_pgsql.so hook library must be loaded in order to
// store host reservations in the PostgreSQL Host Database Backend.
// Specify the host backend hook library location.
"hooks-libraries": [
{
// the PgSql host backend hook library required for host storage.
// the PostgreSQL host backend hook library required for host storage.
"library": "/opt/lib/kea/hooks/libdhcp_pgsql.so"
}
],