SHA256
1
0
forked from pool/warewulf4
Go to file
Ana Guerrero 0be5982e78 Accepting request 1195555 from network:cluster
- added option which allows to copy in file on wwctl container exec
  and keep them, if they were modified
- added added-cow-option-to-bind.patch (forwarded request 1195554 from mslacken)

OBS-URL: https://build.opensuse.org/request/show/1195555
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/warewulf4?expand=0&rev=25
2024-08-22 16:14:09 +00:00
_service - Update to version 4.5.6: 2024-08-12 12:30:56 +00:00
.gitattributes - Update to version 4.5.6: 2024-08-12 12:30:56 +00:00
.gitignore - Update to version 4.5.6: 2024-08-12 12:30:56 +00:00
added-cow-option-to-bind.patch - added option which allows to copy in file on wwctl container exec 2024-08-22 13:18:52 +00:00
adjust_overlays.sh - Update to version 4.5.6: 2024-08-12 12:30:56 +00:00
config-ww4.sh - Update to version 4.5.6: 2024-08-12 12:30:56 +00:00
README.dnsmasq - Update to version 4.5.6: 2024-08-12 12:30:56 +00:00
vendor.tar.xz - Update to version 4.5.6: 2024-08-12 12:30:56 +00:00
warewulf4-rpmlintrc - Update to version 4.5.6: 2024-08-12 12:30:56 +00:00
warewulf4.changes - added option which allows to copy in file on wwctl container exec 2024-08-22 13:18:52 +00:00
warewulf4.spec - added option which allows to copy in file on wwctl container exec 2024-08-22 13:18:52 +00:00
warewulf-4.5.6.obscpio - Update to version 4.5.6: 2024-08-12 12:30:56 +00:00
warewulf.obsinfo - Update to version 4.5.6: 2024-08-12 12:30:56 +00:00

Replace dhcpd and tftp with dnsmasq
===================================

The isc `dhcpd` server and `tftp` service can be replaced by `dnsmasq` as 
singe service, which has also the benefit that dns entries for the 
wwarewulf cluster will then also be provided.

Installation
-----------

Before the installation, make sure that `dhcpd` and `tftp` are disabled.
You can do that with the commands:
```
systemctl disable dhcpd
systemctl stop dhcpd
systemctl disable tftp
systemctl stop tftp
```

Now you can install `dnsmasq` with command 
```
zypper install dnsmasq
```

After the installation you have to instruct `warewulf` to use  `dnsmasq` as
`dhcpd` and `tftp` service, `dnsmasq` has to be specified in the configuration
file `/etc/warewulf/warewulf.conf`. There you have to change the two following 
values:
```
tftp:
  systemd name: dnsmasq
dhcp:
  systemd name: dnsmasq
```

The configuration of `dnsmasq` doesn't need to be changed, as the default configuration
includes all files with following pattern `/etc/dnsmasq.d/*conf` into its configuration.
This configuration is created by the template `overlays/host/etc/dnsmasq.d/ww4-hosts.conf.ww`.
In order to build this template run
```
wwctl overlay build -H
```
After that the `dnsmasq` service has to be enabled with either
```
systemctl enable --now dnsmasq
```
or by (re)configuring warewulf with 
```
wwctl configure dhcp
wwctl configure tftp
```