The hosts file man page (`man hosts`) states:
> This file is a simple text file that associates IP addresses with
> hostnames, one line per IP address. For each host a single line should
> be present with the following information:
>
> IP_address canonical_hostname [aliases...]
As such, it seems that the hostname should be first in the list.
This is particularly true for the `warewulf` alias for the server
itself, which is certainly an alias for the canonical hostname.
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
A new debug overlay template serves as an example of how to access all
template variables which can also be rendered against any node to
display all template variable values.
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
It appears that the intended behavior of overlay chown was changed
in 00d8d42e9, but the argument handling was not updated to reflect
the removal of overlayKind. This led to a crash when only the
uid was specified, and a processing of the gid as the uid
otherwise.
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
Specifying 0 for gid as a default during chown causes the
gid to be changed to 0 when left unspecified. Changing the
default value to -1 causes the gid to be left unmodified
when unspecified, which is a less surprising behavior.
Signed-off-by: Jonathon Anderson <janderson@ciq.co>