Commit Graph

3406 Commits

Author SHA1 Message Date
Jonathon Anderson
2f3fc477b0 Merge pull request #2060 from anderbubble/multi-arch-wwclient
New architecture-specific wwclient overlays
2025-10-31 12:06:02 -06:00
Jonathon Anderson
e07efeee4c New architecture-specific wwclient overlays
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-10-31 11:56:53 -06:00
Jonathon Anderson
80f6f15a13 Merge pull request #2055 from anderbubble/handle-configure-tftp-selinux
Manage selinux context of tftp directory
2025-10-30 09:37:22 -06: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
Jonathon Anderson
be97ef15a0 Manage selinux context of tftp directory
- Fixes: #1997

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-10-29 20:11:41 -06:00
Jonathon Anderson
9a94d1f2b1 Merge pull request #2007 from mslacken/fixCVE-2025-58058
fix CVE-2025-58058
2025-10-20 14:18:06 -06:00
Christian Goll
8360a6ffff Fix CVE-2025-58058 2025-10-20 14:09:59 -06:00
Christian Goll
909a134eef Merge pull request #2045 from ssimpson89/update-ipmi-speed
Add IPMI speed tag to 50-ipmi template
2025-10-20 11:48:37 +02:00
Stephen Simpson
b5552aee07 Add IPMI bit-rate configuration and update documentation
Signed-off-by: Stephen Simpson <ssimpson89@users.noreply.github.com>
2025-10-17 11:04:43 -05:00
Christian Goll
05cf57a506 Merge pull request #2030 from middelkoopt/tm-openeuler
Add OpenEuler support
2025-10-15 09:24:28 +02:00
Jonathon Anderson
c464e106e9 Merge pull request #2013 from tweiers/netplan-bond-interface-fix
Change netplan overlay to use netdev device names instead of the netdev name in bonds
2025-10-14 14:02:09 -06:00
Jonathon Anderson
c600a3e455 Updated CHANGELOG and tests for netplan bonding
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-10-14 13:53:44 -06:00
Tim Weiers
7ffb07c54a Change netplan overlay to use netdev device names instead of the netdev name in bonds
Signed-off-by: Tim Weiers <56134890+tweiers@users.noreply.github.com>
2025-10-14 13:53:44 -06:00
Christian Goll
ffe3dadd96 Merge pull request #2010 from anderbubble/2009-wwclient-once-address-already-in-use
Fix "address already in use" from wwclient when secure=true
2025-10-14 21:11:50 +02:00
Jonathon Anderson
a4bde3b279 Fix "address already in use" after wwclient --once
- Closes: #2009

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-10-14 13:01:04 -06:00
Timothy Middelkoop
44057766e7 Add OpenEuler support
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
2025-10-01 13:50:31 -05:00
Jonathon Anderson
4f4a3dcebe Merge pull request #2011 from anderbubble/ifupdown
Rename debian.interfaces to ifupdown
2025-09-16 10:20:38 -06:00
Jonathon Anderson
91a69e8756 Rename debian.interfaces to ifupdown
When I first split the debian interfaces support from wwinit, I was unable to
figure out what it was called. I used the inelegant name "debian.interfaces" to
identify it; but I have since learned that it is called "ifupdown." I have
since learned that there is even a variant implementation, ifupdown-ng, that is
used by Alpine Linux.

This PR renames the overlay to ifupdown, but retains a copy of it at
debian.interfaces for backwards compatibility.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-09-15 09:50:59 -06:00
Jonathon Anderson
f36a373b8b Merge pull request #2008 from anderbubble/v4.6.4-release-notes-index 2025-09-09 19:17:43 -06:00
Jonathon Anderson
79eb21fa12 Add the v4.6.4 release notes to the userdocs index
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-09-06 18:45:06 -06:00
Jonathon Anderson
4b9e2f0282 Merge pull request #2004 from anderbubble/v4.6.4
v4.6.4 release updates
2025-09-05 16:52:31 -06:00
Jonathon Anderson
489c8662d3 v4.6.4 release updates
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-09-05 16:45:23 -06:00
Jonathon Anderson
b259af2524 Merge pull request #2002 from anderbubble/explicit-field-names
Read field names from field tags
2025-09-05 15:42:55 -06:00
Jonathon Anderson
92375f4ebb Explicit field names
Fields now use the value of a `name` tag on a struct to determine the display
name for a given field. This improves output for boolean-pointer fields, which
otherwise have a P suffix and helper methods to retain backwards-compatibility.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-09-05 14:08:24 -06:00
Christian Goll
28b040326e Merge pull request #1995 from anderbubble/update-nm-connections
Omnibus network management overlay fixes
2025-09-05 14:18:49 +02:00
Christian Goll
f90306bfeb Merge pull request #1994 from anderbubble/WipeTableError
Fix disk-related booleans using a *bool to capture unset values
2025-09-05 14:16:21 +02:00
Jonathon Anderson
8462a30a68 Adjust the fmt test to reveal output
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-09-05 14:16:03 +02:00
Jonathon Anderson
59f187bf5e Convert disk booleans from wwbool to *bool
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-09-05 14:16:03 +02:00
Christian Goll
cc946e0b99 removed wwBool.Parse and use Set 2025-09-05 14:16:03 +02:00
Christian Goll
8a684973d9 update linter to last v1 version 2025-09-05 14:16:03 +02:00
Christian Goll
026bae7a40 fixed upgrade for wwBool in disks 2025-09-05 14:16:03 +02:00
Christian Goll
d5b94afcb9 replace bools in disk structures with wwBool 2025-09-05 14:16:03 +02:00
Christian Goll
5e40c66381 test for disk vars set to false 2025-09-05 14:15:53 +02:00
Jonathon Anderson
458e23d0ae Set SLAVE=yes in ifcfg files when MASTER is set
- Fixes: #1980

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-09-04 17:44:25 -06:00
Jonathon Anderson
7a6a1ad441 Disable ipv4 in NetworkManager if no address or route is specified
- Closes: #1986

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-09-04 17:44:25 -06:00
Stephen Simpson
0ef2faf3f7 Update NetworkManager Overlay
Signed-off-by: Stephen Simpson <ssimpson89@users.noreply.github.com>
2025-09-04 17:44:25 -06:00
Jonathon Anderson
70e4d5cc80 Merge pull request #2001 from anderbubble/fix-brp-mangle-shebangs-exclude-overlays
Fix a find/replace typo from #1999
2025-09-04 17:02:46 -06:00
Jonathon Anderson
c837ac7922 Fix a find/replace typo from #1999
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-09-04 15:58:17 -06:00
Jonathon Anderson
7f410d0e93 Merge pull request #1999 from anderbubble/brp-mangle-shebangs-exclude-overlays
Exclude overlays from brp-mangle-shebangs
2025-09-04 15:44:49 -06:00
Jonathon Anderson
c96e496a9f Capture overlaydir as its own variable in the specfile
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-09-04 15:38:23 -06:00
Jonathon Anderson
79d058f202 Prevent brp-mangle-shebangs from updating overlays
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-09-04 15:38:22 -06:00
Jonathon Anderson
0379cebb71 Merge pull request #2000 from anderbubble/golang-version-spec
Update golang BuildRequires in warewulf.spec.in
2025-09-04 15:21:14 -06:00
Jonathon Anderson
34bf90dbe9 Merge pull request #1993 from middelkoopt/tm-systemd-warewulfd
Add default for systemd name for warewulf in warewulf.conf
2025-09-04 15:14:38 -06:00
Jonathon Anderson
77fbbeae86 Merge pull request #1946 from adrianreber/2025-07-14-system-tmpdir
fix(wwctl): Create overlay edit tempfile in tmpdir
2025-09-04 14:25:48 -06:00
Adrian Reber
e86981fd59 fix(wwctl): Create overlay edit tempfile in tmpdir
When editing an overlay, the temporary file was created within the
overlay directory structure. This could lead to the temporary file
being included in the overlay if not cleaned up properly.

This change modifies the behavior to create the temporary file in the
system's default temporary directory, avoiding any potential issues
with the overlay itself.

Not using this change the temporary file can be seen in the overlay:

 DEBUG  : Using temporary file /usr/share/warewulf/overlays/host/ww-overlay-edit-2879742493
 DEBUG  : Checking if path exists as a file: /usr/share/warewulf/overlays/host/rootfs/etc/hosts.ww
 DEBUG  : ExecInteractive(tee, [/usr/share/warewulf/overlays/host/ww-overlay-edit-2879742493])

 # find /srv | grep ww-overlay
 /srv/warewulf/overlays/host/ww-overlay-edit-2879742493

With this patch applied:

 DEBUG  : Using temporary file /tmp/ww-overlay-edit-266752840
 DEBUG  : Checking if path exists as a file: /usr/share/warewulf/overlays/host/rootfs/etc/hosts.ww
 DEBUG  : ExecInteractive(tee, [/tmp/ww-overlay-edit-266752840])

 # find /srv | grep ww-overlay

Assisted-by: Gemini 2.5 Pro
Signed-off-by: Adrian Reber <areber@redhat.com>
2025-09-04 14:10:13 -06:00
Jonathon Anderson
a979bb1bef Update golang BuildRequires in warewulf.spec.in
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-09-04 13:35:03 -06:00
Timothy Middelkoop
58f13721f0 Add default for systemd name for warewulf in warewulf.conf
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
2025-09-01 14:39:46 -05:00
Jonathon Anderson
1f88d93f7e Merge pull request #1984 from anderbubble/wwclient-atomic
Atomic overlay file application in wwclient
2025-08-28 08:55:36 -06:00
Jonathon Anderson
32ca0a9170 Atomic overlay file application in wwclient
Update wwclient such that each file in the runtime overlay is applied
atomically, and only if modified.

- Closes: #1307
- Closes: #1975
- Closes: #1226

Also adds --once flag to allow wwclient to be run one time.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-08-28 07:45:35 -06:00
Jonathon Anderson
dd38e739e5 Merge pull request #1968 from mslacken/FixSiteOverlays
refactored overlay class
2025-08-27 22:42:39 -06:00