Jonathon Anderson
8c2723f16c
Fixed a regression in SELinux support by restoring the /run mount during wwinit. #1910
...
https://systemd.io/INITRD_INTERFACE/
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-05-12 21:26:59 -06:00
Stephen Simpson
9b94c6c8c3
Updated udev overlay for case-insensitive
...
Co-authored-by: acabrera86 <acabrera86@users.noreply.github.com >
Signed-off-by: Stephen Simpson <ssimpson89@users.noreply.github.com >
2025-05-02 16:50:13 -05:00
Jonathon Anderson
d982fea6da
Set an IPMI tag `vlan to configure the vlan during ipmiwrite`
...
- Closes : #1031
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-25 20:49:28 -06:00
Jonathon Anderson
4367b56120
Restore some default behaviors
...
- If `init` is not specified, wwinit looks for /sbin/init, /etc/init,
and /bin/init, matching dracut behavior.
- assume ipxe template=default if not set
- Display a warning during overlay build if an overlay list is empty
Issues:
- Closes : #1808
- Closes : #1813
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-25 09:07:03 +01:00
Jonathon Anderson
e4a9018b80
wwclient uses WW_IPADDR, if set, to contact the Warewulf server.
...
- Closes : #1788
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-22 03:03:21 -06:00
Jonathon Anderson
8c65c681c9
Remove dracut NetworkManager connections for phase 2
...
- Closes : #1780
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-25 06:32:25 -07:00
Jonathon Anderson
3a1e581f93
Better handling for missing NetDev.Device
...
- Closes : #1777
Overlays:
- ifcfg
- NetworkManager
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-24 22:27:36 -07:00
Christian Goll
4fcd12da40
Added test for onboot parameter
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2025-02-20 01:41:11 -07:00
Jonathon Anderson
fd8de8bfab
Add WWbool.BoolDefaultTrue()
...
New support in WWbool for booleans that default "true."
Used primarily for NetDev.OnBoot.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-20 01:41:10 -07:00
Christian Goll
bd485817c1
Require ignition for mount and not only after
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2025-02-21 22:27:40 -07:00
Christian Goll
9fd3b354e0
Merge pull request #1742 from anderbubble/wwinit-logging
...
Improved logging during iPXE, GRUB, and wwinit
2025-02-20 10:32:11 +01:00
Jonathon Anderson
e5024038a6
Don't use DHCP for interfaces attached to a bond
...
- Fixes : #1743
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-20 10:16:59 +01:00
Jonathon Anderson
4fa8601b75
Updated wwinit for clarity #1156
...
Also:
- Renamed /warewulf/wwinit to /warewulf/prescripts
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-17 02:48:16 -07:00
Jonathon Anderson
da26fa3061
Added support for a DNSSEARCH netdev tag in network configuration overlays
...
- Closes : #1256
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-14 09:07:09 +01: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
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
87da57d1a2
Return "" when NetDev.IpCIDR is empty
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-10 10:26:01 +01: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
09503e583c
Don't mount /run during wwinit
...
- Fixes : #1566
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-30 16:28:57 -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
ef376e97de
Improved template variables debug template and documentation
...
- Closes #1097
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-21 09:42:27 -07:00
Jonathon Anderson
8e8349ccd0
Fix newline handling in /etc/issue
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-19 13:58: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
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
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
dae8d004b3
Use Node literal in MergeNode, not EmptyNode()
...
EmptyNode populates empty sub-structs, which interferes with omitempty during
serialization.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-18 09:48:26 -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
Christian Goll
77bdfba816
create fstab 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
Jonathon Anderson
717241aa18
Add methods to config.New().Paths for site and distribution overlays
...
- SiteOverlaySourcedir() uses WWOverlaydir (/var/lib/warewulf/overlays)
- DistributionOverlaySourcedir() uses Datadir (/usr/share/warewulf/overlays)
- config.New().Warewulf.DataStore moved to config.New().Paths.Datadir
- FindOverlays() ignores missing distribution overlay directory
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-20 11:12:47 +01:00
Jonathon Anderson
39707eaccf
Add tests for localtime overlay and make configurable
...
localtime overlay can now be configured with a "localtime" tag.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-17 18:48:00 -07:00
Christian Goll
a2b3ae1308
added template for localtime
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-12-17 18:48:00 -07:00
Ian Kaufman
1d3cb6f153
Add Netplan NIC support for Debian/Ubuntu #1463
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-10 19:41:27 -07:00
Jonathon Anderson
a844379bc5
Merge --kerneloverride into --kernelversion
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-09 10:02:28 +01:00
Christian Goll
d1c734732f
better udev rules
...
Renamed 70-ww4-netname.rules.ww to 70-persistent-net.rules.ww.
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-11-13 17:44:48 -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
8a602e8a76
Return OnBoot to wwtype.WWbool
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:08:55 -07: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
3cb55a68de
Re-write 50-ipmi
...
This re-write checks, implements, and reports on each WWIPMI variable
individually.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-07 23:06:27 -07:00
Christian Goll
c23537e74a
don't update ipmi if there is no password
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-11-07 23:06:26 -07:00
Jonathon Anderson
0cb4db946c
Add support for VLANs and static routes #1257
...
- NetworkManager
- wicked
- ifcfg
- debian.network_interfaces
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-06 19:17:19 -07:00
Christian Goll
2e6b648e09
added vlan for wicked
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-11-06 19:17:19 -07:00