ansible-ffibk/roles/service-dhcpd/README.md
2017-12-28 22:12:00 +01:00

30 lines
906 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Ansible role service-dhcpd
Diese Ansible role installiert und konfiguriert den kea dhcp daemon.
Wir nutzen diesen nur zur Verteilung von IPv4-Adressen.
- installiert kea-dhcp4-server
- schreibt kea-dhcp4.conf
## Benötigte Variablen
- Dictionary `meshes`
´´´
meshes:
- id: xx
...
site_name: # string
site_code: # string
ipv4_network:
dnssl:
- $domain # string
kea_dnssl_binary: # kea < 1.2 only supports dnssl data in hex format
iface_mtu: # integer
´´´
- Host Variable `magic`
- Host Variable `ipv4_dhcp_range`
## DHCP Range
In der Host-Variable `ipv4_dhcp_range` wird als Integer die Nummer des /22 Blocks aus `ipv4_network` definiert, welcher als DHCP Range verwendet werden soll. Dem Gateway Lotuswurzel ist die DHCP-Range 10.X.16.0-10.X.19.255 zugewiesen. Diese ist der 4. /22er Block, also wird in der Host-Variable für die Lotuswurzel `4` geschrieben.