Christian Goll
a0efd7fe08
Added --partwipe flag for set
2026-01-21 10:38:47 +01:00
Christian Goll
f590da4916
fix wwctl image import --update
2025-12-17 12:30:43 -07:00
Jonathon Anderson
f82d90123a
Additional tests for wwctl overlay info
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-12-09 23:16:03 -07:00
Jonathon Anderson
9ed245f9fe
Update test suite for wwctl overlay info
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-12-09 23:16:03 -07:00
Jonathon Anderson
4e67db0be6
Reflection-based template walking
...
Rather than deriving the identity of template variables by string parsing the
name, identify its relationship to the underlying struct using reflection.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-12-09 23:16:00 -07:00
Jonathon Anderson
29136e17d4
Recommended changes from review
...
- Reorganized documentation
- Reordered columns
- Renamed column names
- Added `--` to options in output
- Updated aliases
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-12-09 22:52:44 -07:00
Christian Goll
0bbab7ac3c
allocate writeFile and backupFile just once
2025-12-09 22:52:44 -07:00
Christian Goll
983a359c00
refactor to overlay info
2025-12-09 22:52:44 -07:00
Christian Goll
d1d398d2ff
add more generic documentation via wwdoc(n)
...
doc
2025-12-09 22:52:44 -07:00
Christian Goll
68758e3e45
use comments of variables for help
2025-12-09 22:52:44 -07:00
Christian Goll
facde98fb5
new overlay variables command
2025-12-09 22:52:44 -07:00
Christian Goll
847a4386e1
don't show vars in overlay list
...
vars
2025-12-09 22:52:44 -07:00
Christian Goll
5d284b1c61
show used Tags for overlays
2025-12-09 22:52:44 -07: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
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
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
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
5e40c66381
test for disk vars set to false
2025-09-05 14:15:53 +02: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
66450a7dcd
Simpler names for overlay methods
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-08-27 22:33:18 -06:00
Jonathon Anderson
6fd858899d
Fix warewulfd api behavior when deleting distribution overlay
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-08-27 22:25:21 -06:00
Christian Goll
6f4fd60d8f
refactored overlay class
...
overlay.GetOverlay(name) returns now an error if the overlay doesn't
exist. This is the most canonical way to act if there is no overlay.
2025-08-27 22:24:31 -06:00
Jonathon Anderson
b3a6f3d905
Fix a race condition in wwctl overlay edit
...
Switches to using sha256 rather than mtime to detect changes to an
overlay file.
- Fixes : #1947
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-08-01 01:57:02 -06:00
Christian Goll
2c51ca7fff
added warewuld configure option
...
Co-authored-by: Jonathon Anderson <janderson@ciq.com >
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-07-31 21:47:08 -06:00
Tobias Ribizel
c2a51c2a7e
format and changelog
...
Signed-off-by: Tobias Ribizel <mail@ribizel.de >
2025-07-07 15:44:11 +02:00
Tobias Ribizel
301082cdd7
add docstring for node patterns
...
Signed-off-by: Tobias Ribizel <mail@ribizel.de >
2025-07-06 16:36:45 +02:00
Jonathon Anderson
2ba6e28215
Remove wwctl node import --csv
...
- Closes #1862
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-07-02 21:25:54 -06:00
Jonathon Anderson
48bace55f6
Preserve file permissions during wwctl overlay edit
...
- Fixes : #1886
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-07-02 08:06:13 -06:00
Jonathon Anderson
3db131eadf
Fix width of wwctl image shell --help
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-07-02 13:54:56 +02:00
Christian Goll
e72368cd26
fix wwctl profile set for disk/fs/part
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-05-27 13:56:04 -06:00
Jonathon Anderson
4005afac4c
Add a new OpenAPI v3 REST API to warewulfd at /api
...
Co-authored-by: jason yang <jasonyangshadow@gmail.com >
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-04-03 07:12:03 -06:00
Jonathon Anderson
51786b5e4a
Fix a panic during wwctl node list --ipmi for nodes with no ipmi configuration. #1847
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-04-01 16:48:43 -06:00
Jonathon Anderson
1883f2e932
Added a test for wwctl node import
...
To support this, also added `wwctl node import --yes`.
Also corrected the spelling of `--cvs` to `--csv`.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-25 20:00:48 -06:00
Jonathon Anderson
09488db3f6
Fix processing of UNDEF and UNSET during wwctl <node|profile> set. #1837
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-25 18:16:14 -06:00
Xu YANG
9e9f37208c
Merge pull request #1841 from anderbubble/cobra-nargs
...
Explicitly enforce the number or arguments accepted by some `wwctl` subcommands
2025-03-25 13:47:14 +09:00
Jonathon Anderson
605c910c82
Update nodes and profiles when renaming an image. #1637
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-24 21:45:06 -06:00
Jonathon Anderson
9a3e48fa37
Explicitly enforce the number or arguments accepted by some wwctl subcommands. #1717
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-24 21:06:07 -06:00
Jonathon Anderson
c7bda5e655
Add tests for overlay import --overwrite
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-21 23:42:30 -06:00
Timothy Middelkoop
ae54fd207b
Add --overwrite to wwctl overlay import
...
- Closes : #386
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu >
2025-03-21 23:42:27 -06:00
Christian Goll
ea9a013812
Handle missing ipmi fields during bmc commands
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-18 15:33:35 -06:00
Christian Goll
d256d15c20
fixup pdf build
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2025-03-18 12:21:03 -06:00
Christian Goll
a97c204f53
Use wwctl overlay <import|build> --workers=0 to indicate default value
...
By default, uses `runtime.NumCPU()`
The default value is rendered in the generated man pages, which made
their content dependent on build system characteristics.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-01 11:46:15 +01:00
Jonathon Anderson
7f317dff82
Add WW_HISTFILE to control shell history location during wwctl image shell
...
Co-authored-by: Christian Goll <cgoll@suse.com >
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-14 09:09:57 +01:00
Jonathon Anderson
609dc286ef
Update PS1 during wwctl image shell to include working directory
...
Optionally, use `WW_PS1` to construct the prompt.
- Closes : #1245
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-14 09:09:57 +01:00
Jonathon Anderson
8197484461
Make wwctl image syncuser --write true by default
...
It can be disabled with `wwctl image syncuser --write=false`.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 18:28:49 -07:00
Jonathon Anderson
01b3c28874
Update syncuser to read passwd and group from sysconfdir
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 18:28:49 -07:00
Jonathon Anderson
b56fc19f9e
Added wwctl image build --syncuser
...
- #1321
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 18:28:49 -07:00
Jonathon Anderson
f2092b2854
Remove syncuser warning messages in wwctl that assume its use
...
- #1321
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 18:28:49 -07:00
Christian Goll
a686ddb7ad
Merge pull request #1737 from anderbubble/issue-649
...
Make .ww suffix optional during wwctl overlay show --render
2025-02-13 15:14:27 +01:00
Jonathon Anderson
d968b02153
Fix image completion
...
- Fixes #1734
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 10:23:56 -07:00