Commit Graph

70 Commits

Author SHA1 Message Date
Timothy Middelkoop
fe611f77de IPv6: Add dnsmasq non-static config
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
2025-12-01 03:39:54 +00:00
Timothy Middelkoop
223f56a330 Merge dnsmasq ipv4 and ipv6 files
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
2025-11-29 02:12:19 +00:00
Timothy Middelkoop
484965dbae IPv6: /etc/exports overlay
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
2025-11-27 23:05:13 +00:00
Timothy Middelkoop
f5b4333781 IPv6: /etc/hosts support
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
2025-11-27 02:48:28 +00:00
Timothy Middelkoop
4f58845a9e Add IPv6 support for Dnsmasq and NetworkManager
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
2025-11-27 01:56:18 +00:00
Timothy Middelkoop
07eee48a6a Add IPv6 support for dnsmasq
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
2025-11-17 18:03:05 +00:00
Jonathon Anderson
40f0cebe64 Configure destination of grub.cfg at overlay render time
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-10-29 21:27:47 -06:00
Timothy Middelkoop
c1027053d0 Add support for EL10
* Upadate dev container to use EL10
* Update CI to use EL10
* Update spec file for EL10
* Add `make rpm` target for building RPMs
* Use `mktemp` for `make dist` to use devcontainer filesystem
* Set default dhcpd and tftpd to dnsmasq for EL10
* Fix dnsmasq template tftp paths to use basename

Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
2025-08-24 21:43:14 +00:00
Jonathon Anderson
4abaa1207a DHCP template generates as much of the subnet and range definition as possible.
- Closes: #1469

This makes it possible to disable just the dynamic range without losing access
to the next-server required by static host entries.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-10 16:27:13 -07:00
Jonathon Anderson
73f34d0099 Restore server network auto-detection
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-06 20:46:20 -07:00
Jonathon Anderson
2e1466fc7e Fix handling of CIDR values in warewulf.conf
- Fixes: #1541
- Fixes: #1594

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-06 20:46:20 -07:00
Xu YANG
470f8c65d5 Merge pull request #1707 from anderbubble/remove-syslog
Remove `warewulf.conf:syslog`
2025-02-07 12:08:48 +09:00
Jonathon Anderson
4809641ef6 Re-order SSH key types to make ed25519 default
- Fixes: #981

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-05 23:27:29 -07:00
Jonathon Anderson
89721c6832 Remove warewulf.conf:syslog
- Fixes: #1606

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-05 21:58:39 -07:00
Jonathon Anderson
bc52f3b7d7 Recommended changes from review of #1568
- Make Resources an `interface{}` to support arbitrary yaml
- Remove `wwctl resource` as incompatible with arbitrary yaml
- Revert changes to host overlay templates
- Remove NFS mount options from warewulf.conf
- Replace NFS support / resource prefix with "fstab" resource
- Move resources to profiles
- Migrate warewulf.conf mounts to nodes.conf with `wwctl upgrade`
- Add documentation

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-17 10:33:37 -07:00
Jonathon Anderson
eff1edd038 Fixing tests in review of #1568
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-17 01:27:15 -07:00
Christian Goll
847d11611b creating exports from resource
Signed-off-by: Christian Goll <cgoll@suse.com>
2025-01-16 23:00:37 -07:00
Jonathon Anderson
a18913924d Benchmarking for wwctl overlay build
- Benchmarks overlay build in an environment with 1000 nodes
- Updates testenv to support both benchmarks and tests

To execute:

```
go test github.com/warewulf/warewulf/internal/app/wwctl/overlay/build -bench Benchmark_Overlay_Build
```

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-12-25 12:34:23 -07:00
Timothy Middelkoop
e4a721d87e Remove debian.interfaces from nodes.conf
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
2024-11-12 14:46:12 +01:00
Timothy Middelkoop
df6242d66f Fix dhcp template for static template
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
2024-11-12 14:46:06 +01:00
Jonathon Anderson
a7325b6ffa Remove WW_INTERNAL
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-11-11 00:08:54 -07:00
Jonathon Anderson
4b4234994c Misc whitespace handling fixes
Also fixes handling of mtu value in Debian networking.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-10-18 00:31:19 -04:00
Jonathon Anderson
805704ce08 Minimize nodes.conf for overlay tests
Also updated issue to show both configured and detected address.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-10-17 16:43:31 -04:00
Christian Goll
0c6e7cc58a fixes for split overlays
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-10-17 15:39:54 -04:00
Christian Goll
9fdb9ca792 updated overlays
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-10-17 15:30:54 -04:00
Jonathon Anderson
053dd9953a Split overlays into discrete functionality and test
- Closes #987

To make the overlays testable in isolation, and after discussion with
the TSC, removed host/time/source from overlay files.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-09-26 10:48:38 -06:00
Jonathon Anderson
f620b7afe2 Restore previous behavior of static dhcp
- Disable dynamic pool when using static dhcp
- Populate configuration of non-primary interfaces for static dhcp

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-07-01 21:43:12 -06:00
Christian Goll
75aad7d2ca set correct asset tag for dnsmasq template
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-06-24 10:42:12 +02:00
Josh Burks
dd6b419440 added asset-tag to ipxe script request fix #1110
Signed-off-by: Josh Burks <jeburks2@asu.edu>
2024-06-18 09:23:18 -07:00
Christian Goll
0990c3ecdb Merge pull request #1187 from mslacken/SetSSHKeys
allow the user to specify ssh key types
2024-05-06 11:12:06 +02:00
snehring
6e6344830d Reorder dnsmasq config template to put iPXE last.
Signed-off-by: snehring <snehring@iastate.edu>
2024-05-01 16:22:06 -05:00
Jonathon Anderson
7046c6dc8c Use the first configured ssh key type for authn
Previously, the authentication key was always generated using rsa. Now
it uses the first configured ssh key type.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-05-01 14:27:39 -06:00
Jonathon Anderson
6cc13455f6 Move overlays to rootfs and and set ownership
Move all overlay contents to a rootfs subdirectory, which was already
supported, and set ownership to root:root.

Closes #1078

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-02-17 10:39:06 -07:00
Christian Goll
65198bb995 enable grub for dnsmasq
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-02-06 22:51:50 -07:00
Christian Goll
a544744691 move dnsmasq template into etc
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-02-06 22:39:03 -07:00
Jonathon Anderson
5d6ef1882d Remove whitespace damage
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-01-21 00:18:38 -07:00
Jonathon Anderson
9569c46210 Restore functionality of the static dhcp template
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-01-17 18:02:04 -07:00
Christian Goll
725176cfed cleanup code after review
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-01-17 18:02:04 -07:00
Christian Goll
4379c4c18d use grub/shim from host system
Also the boot method is now configured globaly as this is
the only way to make sure that unkonwn nodes get the right
stuff

Signed-off-by: Christian Goll <cgoll@suse.com>
2024-01-17 18:02:04 -07:00
Christian Goll
938eff2cfa linking the template and for dhpcd.conf
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-01-17 18:02:04 -07:00
Christian Goll
60dc8f6251 enable grub boot for all nodes
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-01-17 18:02:04 -07:00
Christian Goll
2fe98e5f55 default profile needs to have a container
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-01-17 18:02:04 -07:00
Christian Goll
a36cb23319 added shim/grub find to provision process
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-01-17 18:02:04 -07:00
Jonathon Anderson
4622153a82 Support subdirectories in ipxe paths
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2023-04-19 14:02:43 -06:00
Christian Goll
ba0dec021a added experimental dnsmasq support
Signed-off-by: Christian Goll <cgoll@suse.de>
2023-03-10 17:08:01 +01:00
Christian Goll
11fa27f3e9 Merge pull request #651 from mslacken/MakeIpxeConfig
make ipxe binary source configurable
2023-02-24 15:12:26 +01:00
Jonathon Anderson
35579d6d0a Emit canonical hostnames first
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>
2023-02-21 01:51:09 -07:00
Christian Goll
32ab50f299 make ipxe binary source configureable 2023-01-24 12:11:11 +01:00
Jonathon Anderson
78b857a3e4 Whitespace cleanup
Removes trailing whitespace from all source files.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-12-08 18:59:56 -07:00
wesley800
692effd5c3 remove exit from ssh_setup.*sh 2022-09-19 21:11:45 +08:00