commit | 7f58df063f0056244b30fd31f9058726a62f5f24 | [log] [tgz] |
---|---|---|
author | Zack Williams <zdw@opennetworking.org> | Tue Sep 14 13:49:57 2021 -0700 |
committer | Zack Williams <zdw@opennetworking.org> | Mon Feb 28 17:10:14 2022 -0700 |
tree | 26291072d747ad2771252dcc31f9395ea6efc23c | |
parent | 98725e218d30a52386aa10dcd2c65102c3ac76ed [diff] |
Change format of dhcp_subnets to be a dict Top level key is now subnet CIDR, rather than a list containing dicts, where subnet is a sub-key, so better structured - Update to pass more modern ansible-lint - Fix galaxy info - Format filter plugin w/black - BSD fixes - paths, listening IP for tftpd server Change-Id: I490331bc2998f2afbef135545500d1fa07b626ff
Installs/configure a DHCP server and TFTP server
A few assumptions are made by this role:
routers
is not set in the subnet
dictionary (within dhcpd_subnets
), then the first usable address is set as the router.routers
is set and has a list of IP addresses as a part of the rfc3442routes
key, RFC3442 classless static routes (option 121) will be added in addition to the standard routers
(option 3)dhcpd - ISC's docs:
tftpd - Documentation is scarce. Upstream source repo:
Also supports OpenBSD dhcpd (fork of ISC) and tftpd (BSD).
DHCP:
TFTP:
Minimum ansible version: 2.9.5
- hosts: all vars: dhcpd_interfaces: - eth0 dhcpd_subnets: "192.168.0.1/24": range: "192.168.0.128/25" dns_servers: - "192.168.0.1" - "192.168.0.2" dns_search: - "example.com" tftpd_server: "192.168.0.1" hosts: - name: "dns" ip_addr: "192.168.0.2" mac_addr: "a1:b2:c3:d4:e5:f6" routers: - ip: "192.168.0.1" roles: - dhcpd
Add classless static route support for OpenBSD - see dhcp-options(5) on that system.
© 2020 Open Networking Foundation support@opennetworking.org
License: Apache-2.0