Commit Graph

3242 Commits

Author SHA1 Message Date
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
Christian Goll
cbfdbe6d5a Merge pull request #1745 from anderbubble/NetworkManager-bond-no-dhcp
Don't use DHCP for interfaces attached to a bond
2025-02-20 10:17:24 +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
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
Jonathon Anderson
279e966ce2 Reduced default verbosity of wwctl overlay build
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-20 01:40:36 -07:00
Jonathon Anderson
fd49254ac5 Display auto-detected kernel version during iPXE and GRUB
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-18 17:00:21 -07:00
Christian Goll
34e8aa7402 Merge pull request #1746 from anderbubble/default-nfs-resources
Default nfs resources
2025-02-18 17:42:24 +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
fb9f269fc5 Update ipxe and grub configuration for clarity #1156
Also:

- Defined a menu for iPXE
- Support a IPXEMenuEntry tag to select the boot method
- Merge iPXE dracut support into default.ipxe (use IPXEMenuEntry=dracut)

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-17 02:31:05 -07:00
Christian Goll
f678f10318 Merge pull request #1748 from anderbubble/dhcp-range-optional
Make DHCP range optional
2025-02-17 09:17:40 +01:00
Jonathon Anderson
d96744afbd Make DHCP range optional
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-14 23:32:22 -07:00
Jonathon Anderson
f2273fcd4a Removed check for "discoverable" profiles during wwctl upgrade nodes
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-14 20:45:39 -07:00
Jonathon Anderson
b05fa4157a Added fstab mounts for /home and /opt to initial default profile
- Closes: #1744

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-14 20:30:46 -07:00
Jonathon Anderson
12f7cb4033 Merge pull request #1740 from mslacken/PowerUpMakefile
create commandline options for Makefile
2025-02-14 18:37:20 -07:00
Christian Goll
6914a4050a Add help to Makefile
Signed-off-by: Christian Goll <cgoll@suse.com>
2025-02-14 18:33:43 -07:00
Christian Goll
3f466dc253 Merge pull request #1732 from anderbubble/ps1-working-directory
Update PS1 during `wwctl image shell` to include working directory
2025-02-14 09:10:13 +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
Christian Goll
1ca16456fe Merge pull request #1739 from anderbubble/dns-search
Added support for a DNSSEARCH netdev tag in network configuration overlays
2025-02-14 09:08:04 +01: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
Christian Goll
428b06463f Merge pull request #1736 from anderbubble/syncuser-improvements
syncuser improvements
2025-02-14 08:47:13 +01: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
Christian Goll
817c936f26 Merge pull request #1738 from anderbubble/fix-1734
Fix image completion
2025-02-13 11:00:51 +01:00
Christian Goll
acc1dc3ed0 Merge pull request #1727 from anderbubble/fix-1721
Don't add "default" profile to new nodes if it does not exist
2025-02-12 09:23:14 +01:00
Jonathon Anderson
444c0924f1 Don't add "default" profile to new nodes if it does not exist.
- Fixes: #1721

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-12 09:22:51 +01:00
Christian Goll
cd68b9d889 Merge pull request #1729 from anderbubble/wwctl-hidden-commands
Hide internal `wwctl completion` and `wwctl genconfig` commands
2025-02-12 09:21:21 +01: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
Christian Goll
30fd29b897 Merge pull request #1730 from anderbubble/overlay-flags
Update overlay flags for clarity
2025-02-12 09:16:38 +01:00
Jonathon Anderson
eb6ce7d86c Update syncuser documentation
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-11 18:28:49 -07: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
b0b4e8117f Remove syncuser from the list of default runtime overlays
- #1322

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
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
d968b02153 Fix image completion
- Fixes #1734

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-11 10:23:56 -07:00
Jonathon Anderson
4862d44aad Make .ww suffix optional during wwctl overlay show --render
- Closes: #649

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-11 10:14:18 -07:00
Christian Goll
b3d07f2889 Merge pull request #1731 from anderbubble/dhcp-subnet-and-range
Generates as much of the DHCP subnet as possible
2025-02-11 14:47:17 +01:00
Jonathon Anderson
5cd28fb894 Mark --container flag as deprecated
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-10 19:17:15 -07: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
db30008433 Merge pull request #1725 from MiddelkoopT/tm-dhcp-template
Set default for dhcp.template in warewulf.conf
2025-02-10 17:34:00 -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
8d9c99f739 Hide internal wwctl completion and wwctl genconfig commands
Also remove the redundant `wwctl genconfig completions` command.

- Closes: #1716

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-10 14:22:22 -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
Timothy Middelkoop
944d611d4f Set default for dhcp.template in warewulf.conf
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
2025-02-10 11:16:15 -07:00
Christian Goll
15de12ea76 Merge pull request #1720 from anderbubble/netdev-ipcidr-empty
Return "" when NetDev.IpCIDR is empty
2025-02-10 10:37:11 +01: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
ec61ffbacc Merge pull request #1722 from anderbubble/args-and-completions
wwctl args and completions
2025-02-10 10:24:09 +01:00