Jonathon Anderson
1a3b9a16ed
Add wwctl container <exec|shell> --build=false
...
- Closes #1490
- Closes #1489
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-08 20:37:29 +01:00
Christian Goll
ebf53bae22
Merge pull request #1598 from anderbubble/nested-profiles
...
Support nested profiles
2025-01-08 20:33:42 +01:00
Jonathon Anderson
baf8124186
Merge pull request #1604 from anderbubble/parallel-overlay-build
...
Parallel and optimized overlay builds
2025-01-08 11:13:01 -07:00
Christian Goll
e64396cfab
Merge pull request #1614 from anderbubble/syncuser-help-test
...
Improve syncuser conflict help text
2025-01-08 15:51:49 +01:00
Jonathon Anderson
74616f578d
Improve syncuser conflict help text
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-08 15:50:45 +01:00
Christian Goll
f1e587eb23
Merge pull request #1613 from anderbubble/remove-setdefault
...
Remove `wwctl overlay <build|import> --setdefault`
2025-01-08 15:45:10 +01:00
Christian Goll
ac687a363f
Merge pull request #1616 from anderbubble/cpio-error-verbosity
...
Log cpio errors more prominently
2025-01-08 09:27:50 +01:00
Jonathon Anderson
3bbe859e07
Merge pull request #1609 from ssimpson89/main
...
Add note in userdoc regarding dracut and machine-id
2025-01-06 15:04:43 -07:00
Stephen Simpson
8af74bdb69
Add machine-id note
...
This note informs that it may be necessary to remove /etc/machine-id for dracut to properly generate. The nodes will fail to boot otherwise
2025-01-03 16:03:55 -06:00
Jonathon Anderson
86d10a1a0a
Update copyright dates
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-30 00:48:00 -07:00
Christian Goll
8ef063a093
Check ip addresses formatting
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-12-25 09:10:05 -07:00
Jonathon Anderson
83af6021c0
Recast Profiles as a Profile field and support recursion
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 09:10:05 -07:00
Jonathon Anderson
deaf9c99d7
Remove DEBUG logging in test suite
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 09:10:02 -07:00
Jonathon Anderson
1a3d037703
Refactor GetNode merging with new MergeNode method
...
- Adds many tests for node+profile merging
- Ensures that tracked fields match mergo results
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 09:07:28 -07:00
Jonathon Anderson
c244adc7f6
Performance improvements for overlay build
...
Rendering overlay templates requires fetching and populating / merging all
other nodes, because overlay templates have access to all cluster node info.
This was previously being done for each template render, but is not being done
once for each render operation and re-used for each template render.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 08:48:14 -07:00
Jonathon Anderson
a59403ab3b
Parallel overlay builds
...
- Closes #1018
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 08:48:14 -07:00
Jonathon Anderson
53e5805fbe
Remove os.Umask from overlay.BuildOverlayIndir
...
Adds tests to ensure that the overlay image contains the correct permissions.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 08:48:14 -07:00
Jonathon Anderson
1affdc1883
Remove Chdir from util.BuildFsImage
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 08:48:14 -07:00
Jonathon Anderson
e3680438a6
Remove Chdir from overlay.BuildOverlayIndir
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 08:48:14 -07:00
Jonathon Anderson
9dd1ca0d53
Removed Chdir from util.FindFilterFiles
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 08:48:14 -07:00
Jonathon Anderson
b0164c36b9
Remove Chdir from util.FindFiles
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 08:48:14 -07:00
Jonathon Anderson
170f055c20
Log cpio errors more prominently
...
Previously, cpio output would only be shown as a debug message. Now it is shown
as an error message if cpio returns an error.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 00:34:38 -07:00
Jonathon Anderson
d0f4eaa9bb
Remove wwctl overlay <build|import> --setdefault
...
- Closes : #1335
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-24 23:14:12 -07:00
Jonathon Anderson
4bd19e3986
Merge pull request #1558 from mslacken/SeperateUserOverlays
...
Introduce site overlays
2024-12-20 09:40:48 -07:00
Jonathon Anderson
4ac0bd22c8
Update userdocs for split overlays
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-20 11:12:47 +01:00
Jonathon Anderson
9c42f3c475
Only import files into site overlays
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-20 11:12:47 +01:00
Jonathon Anderson
1fb67d666f
Avoid creating directories or cloning a site overlay until edit is ready to write
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-20 11:12:47 +01:00
Jonathon Anderson
0b00233ab7
Move tstruct.Overlay from wwctl to overlay.InitStruct
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-20 11:12:47 +01:00
Jonathon Anderson
c03dc9436b
Add an Overlay type with helper methods
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-20 11:12:47 +01:00
Jonathon Anderson
7d4b7ab432
Remove OverlayDoesNotExistError
...
- No receiver of the error is checking its type
- No receiver of the error is checking its `Name` attribute
- Any receiver of the error knows the name already
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-20 11:12:47 +01:00
Jonathon Anderson
ac49ecef70
Rename and refactor overlay constructor functions
...
- Reduces redundancy
- Adds clarity
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-20 11:12:47 +01: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
ed78da4123
Move distribution overlays to datadir
...
This typically puts the overlays into `/usr/share/warewulf/overlays/`.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-20 11:12:47 +01:00
Christian Goll
e2c03ce863
added test for precedence
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-12-20 11:12:46 +01:00
Christian Goll
f65607190e
added documentation for site overlays
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-12-20 11:12:46 +01:00
Christian Goll
d5fc7e9320
introduce site overlays
...
site overlays are place in sysconfdir/overlays and take
precedence over distribution overlays with the same name.
Every `wwctl overlay` command changing overlays will create
an site overlay. distribution overlays can't be deleted or
modified with wwctl.
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-12-20 11:12:41 +01:00
Christian Goll
e8f7c01283
Merge pull request #1595 from anderbubble/removeInit
...
Configure nodes.conf dynamically from config
2024-12-20 11:00:27 +01:00
Jonathon Anderson
4fa07c74f5
Merge pull request #1303 from mslacken/softlink
...
create soft links from overlays
2024-12-18 15:17:41 -07:00
Jonathon Anderson
206b8290c3
Document "readlink" template funtion
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-17 18:48:00 -07: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
Jonathon Anderson
fc82244749
Refactor softlink functions to remove repetition and add flexibility
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-17 18:48:00 -07:00
Jonathon Anderson
a8b2f11114
Include localtime overlay in RPM package
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-17 18:48:00 -07:00
Christian Goll
88016309a9
soft link documentation
...
Signed-off-by: Christian Goll <cgoll@suse.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
Christian Goll
9ff5c60505
create soft link with template
...
Add the the function softlink to the template rendering, so that
{{ softlink: "/bin/bash" }} for the file `/bin/run.ww` will create
a soft link to `/bin/bash`
It's also possible to "import" soft links from the host, e.g. the
template
{{ ImportLink "/etc/localtime" }}
set the timezone from the host
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-12-17 18:48:00 -07:00
Jonathon Anderson
a80ba8ee01
Configure nodes.conf path dynamically from config
...
Removes the use of init() to initialize the variable.
- Closes : #1596
- See also: #1569
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-17 11:04:43 -07:00
Christian Goll
b0d0e26b4a
Merge pull request #1592 from metalllinux/nftables-firewall
...
Added firewalld and nftables setup to configuration.rst
2024-12-12 15:20:39 +01:00
Howard Van Der Wal
ec6f2b7719
Added firewalld and nftables setup to configuration.rst
2024-12-12 17:03:35 +09:00
griznog
ee21ed5c49
Merge pull request #1590 from anderbubble/netplan-packaging
...
Package the netplan overlay
2024-12-11 08:35:14 -06:00
Jonathon Anderson
7cc9198c5a
Package the netplan overlay
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-10 23:54:20 -07:00