Templating
Warewulf uses the text/template
engine to convert dynamic content into static content and auto-populate files with the appropriate data on demand.
In Warewulf, you can find templates both for the provisioning services (e.g. /etc/warewulf/ipxe/
, /etc/warewulf/dhcp/
, and /etc/warewulf/hosts.tmpl
) as well as within the runtime and system overlays.
(more documentation coming soon)
#
Examples#
rangeiterate over elements of an array
#
increment variable in loopiterate over elements of an array and increment i
each loop cycle
#
decrementiterate over elements of an array and decrement i
each loop cycle