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
Jonathon Anderson
21333482e6
Omit duplicate passwd and group entries in syncuser overlay
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 18:28:47 -07:00
Christian Goll
2211df64eb
Merge pull request #1728 from anderbubble/fix-1718
...
Updated `wwctl node export` to include node IDs
2025-02-12 09:20:41 +01:00
Jonathon Anderson
f71483035b
Updated overlay flags
...
New flags: `wwctl <node|profile> <add|set> [--runtime-overlays|--system-overlays]`.
Previous flags retained hidden for backwards-compatibility.
- Closes : #1495
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-10 19:17:08 -07:00
Jonathon Anderson
900426ce81
Updated wwctl node export to include node IDs
...
- Fixed : #1718
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-10 13:41:40 -07:00
Jonathon Anderson
87da57d1a2
Return "" when NetDev.IpCIDR is empty
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-10 10:26:01 +01:00
Christian Goll
5cdaa515d9
additional malformed tests
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2025-02-10 10:11:55 +01:00
Jonathon Anderson
08a8eb430c
wwctl node args and completions
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-09 16:13:40 -07:00
Jonathon Anderson
690eedc247
Remove support for regex in node and profile argument lists
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-07 22:19:59 -07:00
Jonathon Anderson
b53d2390d3
Remove install-dependent paths from warewulf.conf parser tests
...
These tests were failing in the build environment because the paths are set to
different values.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-07 14:38:57 -07:00
Jonathon Anderson
ec453863d5
Resolve "problems" identified by vscode
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-06 22:11:17 -07:00
Jonathon Anderson
a0179f1432
Resolve issues identifies by staticcheck
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-06 22:11:17 -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
Xu YANG
9a102c19af
Merge pull request #1708 from anderbubble/ssh-key-default
...
Re-order SSH key types to make ed25519 default
2025-02-07 12:07:06 +09:00
Xu YANG
5f7713cd4c
Merge branch 'main' into image-size
2025-02-07 12:00:50 +09:00
Xu YANG
dd5f083022
Merge branch 'main' into dracut-asset-tag-urlencode
2025-02-07 11:55:03 +09:00
Jonathon Anderson
6bfcfc5fda
Prevent merging of zero-value net.IP fields
...
- Fixes : #1710
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-06 16:43:21 -07: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
8bf35c7657
Only calculate image chroot size when requested
...
- Fixes : #1504
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-05 20:51:41 -07:00
Jonathon Anderson
6a250f3f96
Set execute permissions for intermediate directories
...
- Fixes : #1655
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-05 20:04:22 -07:00
Jonathon Anderson
38791c74ad
Create site overlay directory
...
-Fixes: #1690
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-04 09:03:08 +01:00
Jonathon Anderson
5bc82f97cc
Urlencode asset keys during dracut boot
...
- Fixes : #1610
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-03 13:49:29 -07:00
Jonathon Anderson
6ad7178ad8
Fix a panic in warewulfd when no kernel fields are specified
...
- Fixes : #1689
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-03 03:48:10 -07:00
Jonathon Anderson
1f607b679b
wwctl node list <--yaml|--json> outputs a map keyed by node name
...
- Fixes : #1667
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-03 12:32:50 +01:00
Jonathon Anderson
e3d90cd323
Prefer parent profile values over child profile values.
...
- Fixes : #1672
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-03 12:16:12 +01:00
Jonathon Anderson
032db29f87
Don't populate NetDevs[].Type or NetDevs[].Netmask during upgrade
...
- Closes : #1661
NetDev defaults don't behave quite the same as standard fields, because they
need to be set per-device. Meanwhile, trying to set a value may erroneously
override values that are on the default profile.
Switch this to a warning rather than attempting to take explicit action.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-03 11:00:12 +01:00
Jonathon Anderson
4f83885c5b
Show each overlay only once #1675
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-01 13:40:12 +01:00
Jonathon Anderson
f931eb6a0a
Fixed negation for slice field elements during profile/node merge
...
- Fixes : #1677
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-01 13:32:10 +01:00
Elmar Pruesse
9ebdb8612b
Use sh to parse and exec IPMI command
...
- Fixes : #1663
Signed-off-by: Elmar Pruesse <pruessee@njhealth.org >
2025-01-30 02:14:42 -07:00
Jonathon Anderson
fce3bc8aff
Release v4.6.0rc1
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-29 04:03:29 -07:00
Christian Goll
755411d3cb
Added warewulfd:/overlay-file/{overlay}/{path...}?render={nodeID}
...
Co-authored-by: Jonathon Anderson <janderson@ciq.com >
Signed-off-by: Christian Goll <cgoll@suse.com >
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-29 00:08:30 -07:00
Jonathon Anderson
51f61f93c4
Refactor kernel args as a slice
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-21 09:52:58 -07:00
Jonathon Anderson
c209dadc1f
Update network interface bonding configuration and documentation
...
- Closes : #1482
- Closes : #1280
This also corrects poor handling of whitespace around the "file" function
throughout the templates, given experiences with the network templates while
implementing the bond behavior. Since the file function actually does produce
output (that is parsed by Warewulf itself) it should not collaps prefix
whitespace.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-21 09:42:27 -07:00
Jonathon Anderson
32081d0917
Document template functions
...
- Closes : #698
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-21 09:42:27 -07:00
Xu YANG
ba9fb3c273
Merge pull request #1649 from anderbubble/images-directory
...
Change image provision directory to "images"
2025-01-28 09:27:29 +09:00
Jonathon Anderson
ca61494297
Change image provision directory to "images"
...
Previous name (before #1641 ) was "container." New name (from #1641 ) was "image"
but a plural name seems better.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-19 14:42:45 -07:00
Jonathon Anderson
73a8ef8e0e
Refactor wwctl <node|profile> edit and fix bugs
...
`wwctl node edit` appears to not be working properly since MergeNode. This
refactor, partly towards #918 , resolves the issues with `node edit` and updates
`profile edit` to match.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-19 13:02:18 -07:00
Jonathon Anderson
a8fab3e844
Enhancements for node.Field formatting
...
- Complex values are now marshalled as json
- Booleans are now represented as truth values
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-19 12:55:19 -07:00
Jonathon Anderson
d6d1e37c83
Merge pull request #1641 from anderbubble/rename-container-node-image
...
Rename "container" to "image"
2025-01-23 21:45:41 -07:00
Xu YANG
55c2f155b3
Merge pull request #1644 from anderbubble/vscode-recommendations
...
Linting fixes called-out by vscode
2025-01-24 08:55:47 +09:00
Xu YANG
0400a21e85
Merge pull request #1645 from anderbubble/remove-upgrade-printf
...
Remove a vestigial printf from wwctl upgrade
2025-01-24 08:53:28 +09:00
Jonathon Anderson
2e057d3a81
Remove a vestigial printf from wwctl upgrade
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-19 07:24:45 -07:00
Jonathon Anderson
45a690ca4e
Rename "container" to "image"
...
- Updated `wwctl upgrade` to handle updates
- Maintained `.Container` and `.ContainerName` in tstruct
- Added `ContainerName()` methods to node and profile objects
- Added `--container`, `-C` aliases to wwctl commands (`<node|profile> <add|set>`)
- Added `wwctl container` alias
- Added support for `container_exit.sh` if `image_exit.sh` is not found
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-19 05:54:19 -07:00
Jonathon Anderson
4be3e6db9f
Linting fixes called-out by vscode
...
A few linting issues that were called out by vscode.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-19 05:26:43 -07:00
Jonathon Anderson
57d28c5bc9
Expand nodes when rendering overlay templates
...
Before #1628 , all default constructors for nodes and profiles attempted to
construct objects with pre-populated empty fields (e.g., for pointers to member
structs and for collections that default to nil). Changes to MergeNode in #1629
changed this behavior intentionally to simplify the generation of minimal json;
but this had the unintended side-effect of breaking existing templates that may
now encounter a nil pointer, particularly when accessing member structs.
Introduced here, the Expand() methods on Node and Profile are now responsible
for populating such fields, and Node.Expand() is now called during template
processing.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-19 04:26:01 -07:00
Jonathon Anderson
22657fed36
Fix a null-pointer bug in wwctl upgrade config
...
Also removing some vestigial development-debug output.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-19 00:35:34 -07:00
Jonathon Anderson
c06f558cf4
fixup! Use Node literal in MergeNode, not EmptyNode()
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-18 10:12:08 -07:00