From c32b752545705698832fe9c140ad7faa6bb79161 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Thu, 6 Feb 2025 00:06:42 -0700 Subject: [PATCH] Document `warewulf.conf:dhcp.template` - Closes: #1701 Signed-off-by: Jonathon Anderson --- CHANGELOG.md | 1 + userdocs/contents/configuration.rst | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ffba236..29459bb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Recommend installing ipmitool with Warewulf package. #970 - Add completion for profile list. #1695 - Add OPTIONS argument for `warewulfd.service`. #1707 +- Document `warewulf.conf:dhcp.template`. #1701 ### Changed diff --git a/userdocs/contents/configuration.rst b/userdocs/contents/configuration.rst index 8d3c2951..423cd856 100644 --- a/userdocs/contents/configuration.rst +++ b/userdocs/contents/configuration.rst @@ -70,6 +70,13 @@ configurations: network, failures will occur. This specifies the range of addresses you want DHCP to use. +* ``dhcp:template`` defines an optional DHCP template variable to control the + generation of the DHCP template. + + Specifying ``template: static`` populates ``dhcpd.conf`` with static leases + for each host, bypassing the DHCP range. Run ``wwctl configure dhcp`` to + update ``dhcpd.conf`` when nodes are added, removed, or changed. + The other configuration options are usually not touched, but they are explained as follows: