Scroll to navigation

WAREWULF.CONF(5) File Formats Manual WAREWULF.CONF(5)

NAME

warewulf.conf - Warewulf server configuration file

DESCRIPTION

warewulf.conf is the main configuration file for the Warewulf server daemon and defines the configuration for its service dependencies, including dhcp, tftp, and nfs.

warewulf.conf is defined using YAML document markup syntax.

PARAMETERS

The configuration parameters available include:

Specifies the version of the configuration file format. The current version is 43.

This is the control node's networking interface connecting to the cluster's private network. This configuration must match the host's network IP address for the cluster's private interface.

This is the control node's networking interface connecting to the cluster's IPv6 private network. This configuration must match the host's network IP address for the cluster's private interface.

The subnet address for the cluster's private network, used in conjunction with the netmask parameter.

Similar to the ipaddr, this is the subnet mask for the cluster's private network and it must also match the host's subnet mask for the cluster's private interface.

WAREWULF

The warewulf parameter is a map of individual sub-parameters which configure Warewulf specifically. (See the EXAMPLE section for overall structure.)

This is the port that the Warewulf web server will be listening on. It is recommended not to change this so there is no misalignment with node's expectations of how to contact the Warewulf service.

Default: 9983

When true, this limits the Warewulf server to only respond to runtime overlay requests originating from a privileged port. This prevents non-root users from requesting the runtime overlay, which may contain sensitive information.

When true, wwclient uses TCP port 987.

Changing this option requires rebuilding node overlays and rebooting compute nodes, to configure them to use a privileged port.

Default: true

The frequency (in seconds) with which wwclient will fetch its configuration (e.g., its overlays) from the Warewulf server.

Default: 60

When true, overlays will be automatically rebuilt when indicated by changes to nodes, profiles, and overlays.

Default: true

Host overlays are used to configure dependent services on the Warewulf server. When disabled, these services' configuration files will not be updated by wwctl-configure(1).

Default: true

When true, Warewulf server logs are written to syslog, rather than a local file.

When false, Warewulf server logs are written to `/var/log/warewulfd.log'.

Default: false

The location where Warewulf caches and stores OCI data.

Default: /var/lib/warewulf

DHCP

The dhcp parameter is a map of individual sub-parameters which inform how wwctl-configure(1) should configure the DHCP service. (See the EXAMPLE section for overall structure.)

When false, the DHCP service will not be configured by wwctl-configure(1).

Default: true

An IP address which defines the start of a dynamic address range which can be used when configuring the DHCP service. Provided to the host overlay as the variable $.Dhcp.RangeStart, typically for use in generating dhcpd.conf or similar.

Templates typically expect this range to be within the network defined above.

An IP address which defines the end of a dynamic address range which can be used when configuring the DHCP service. Provided to the host overlay as the variable $.Dhcp.RangeEnd, typically for use in generating dhcpd.conf or similar.

Templates typically expect this range to be within the network defined above.

The systemd unit name which will be used to (re)start the DHCP service during wwctl-configure(1), if necessary.

Default: dhcpd

TFTP

The tftp parameter is a map of individual sub-parameters which inform how wwctl-configure(1) should configure the TFTP service. (See the EXAMPLE section for overall structure.)

When false, the TFTP service will not be configured by wwctl-configure(1).

Default: true

The systemd unit name which will be used to (re)start the TFTP service during wwctl-configure(1), if necessary.

Default: tftp

NFS

The nfs parameter is a map of individual sub-parameters which inform how wwctl-configure(1) should configure the NFS service. (See the EXAMPLE section for overall structure.)

When false, the NFS service will not be configured by wwctl-configure(1).

Default: true

A list of paths to be exported by the NFS service and, optionally, to be automatically mounted on compute nodes. Each item in the list is, itself, a map of parameters for the mount. (See the EXAMPLE section for overall structure.)

The path on the server to be exported via the NFS service. Provided to the host overlay as the variable .Nfs.ExportsExtended[].Path, typically for use in generating /etc/exports or similar.

The NFS export options to use when exporting the given path via the NFS service. Provided to the host overlay as the variable .Nfs.ExportsExtended[].ExportOptions, typically for use in generating /etc/exports or similar.

Default: rw,sync,no_subtree_check

The NFS mount options to use when mounting the given path on compute nodes via the NFS service. Provided to the compute node's overlays as the variable .Nfs.ExportsExtended[].MountOptions, typically for use in generating /etc/fstab or similar.

Default: defaults

If true, mount the NFS share automatically on compute nodes. Provided to the compute node's overlays as the variable .Nfs.ExportsExtended[].Mount, typically for use in generating /etc/fstab or similar.

Default: true

The systemd unit name which will be used to (re)start the NFS service during wwctl-configure(1), if necessary.

Default: nfsd

EXAMPLE

A sample configuration file for a typical deployment, with all dependent services enabled.

WW_INTERNAL: 45
ipaddr: 10.0.0.1
network: 10.0.0.0
netmask: 255.255.0.0
warewulf:

port: 9873
secure: false
update interval: 60
autobuild overlays: true
host overlay: true
syslog: false
datastore: "" dhcp:
enabled: true
range start: 10.0.0.10
range end: 10.0.0.99
systemd name: dhcpd tftp:
enabled: true
systemd name: tftp nfs:
enabled: true
export paths:
- path: /home
export options: rw,sync
mount options: defaults
mount: true
- path: /opt
export options: ro,sync,no_root_squash
mount options: defaults
mount: true
systemd name: nfs-server

SEE ALSO

wwctl-server(1), wwctl-configure(1), nodes.conf(5)