dhcp/readme.md
Simon Cornet 92a65d41ef
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
ci: migrate from gitlab ci to woodpecker
2026-05-15 14:31:04 +02:00

30 lines
1.1 KiB
Markdown

# Ansible Role: KEA DHCP
Install and configure [KEA DHCP](https://www.isc.org/kea/) server.
## Variables
| Variable | Required | Default | Description |
| ------------------------- | -------- | ------- | --------------------------------- |
| `kea_dhcp_interface` | Yes | `eth0` | Network interface to listen on |
| `kea_dhcp_lease_rebind` | No | `750` | Lease rebind time in seconds |
| `kea_dhcp_lease_renew` | No | `600` | Lease renewal time in seconds |
| `kea_dhcp_lease_lifetime` | No | `900` | Lease lifetime in seconds |
| `kea_dhcp_subnets` | Yes | `[]` | List of DHCP subnets to configure |
## Example
```yaml
kea_dhcp_interface: "eth0"
kea_dhcp_lease_lifetime: "3600"
kea_dhcp_subnets:
- name: "production-lan"
subnet: "192.168.1.0/24"
pool: "192.168.1.100 - 192.168.1.200"
gateway: "192.168.1.1"
dns: "192.168.1.10"
reservations:
- hostname: "server.example.com"
ip: "192.168.1.50"
mac: "AA:BB:CC:DD:EE:FF"
```