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
Jonathon Anderson
e01c31c23f
Merge pull request #1483 from iankgt40/dev
...
Adding Netplan NIC support for Debian/Ubuntu
2024-12-10 19:45:38 -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
Christian Goll
8282b03b58
Merge pull request #1587 from anderbubble/fix-892
...
Support importing containers from directories containing a socket
2024-12-10 11:05:38 +01:00
Jonathon Anderson
c18bcfe3bd
Support importing containers from directories containing a socket
...
- Fixes #892
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-09 11:19:48 -07:00
Christian Goll
4c9f5c1f86
Merge pull request #1556 from anderbubble/kernel-refactor
...
Refactor kernel support
2024-12-09 10:02:58 +01:00
Jonathon Anderson
facba28e0f
Rename "preferred" kernel to "default" kernel
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-09 10:02:29 +01:00
Jonathon Anderson
6f4d33b19e
Move wwctl kernel list to wwctl container kernels
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-09 10:02:28 +01:00
Jonathon Anderson
098c288ce2
Provide detected kernel version to overlay templates
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-09 10:02:28 +01:00
Jonathon Anderson
a844379bc5
Merge --kerneloverride into --kernelversion
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-09 10:02:28 +01:00
Jonathon Anderson
8f21d54243
Refactor kernel support
...
- Remove kernel imports and kmods images
- Repurpose KernelOverride as container path
- Support Kernel.Version as version prefix for kernel selection
- Compare initramfs by version
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-09 10:02:22 +01:00
Christian Goll
d87ed27d8d
Merge pull request #1580 from anderbubble/runc-1.1.14
...
Update github.com/opencontainers/runc to 1.1.14
2024-12-09 09:35:46 +01:00
Christian Goll
e6ff009db9
Merge pull request #1577 from anderbubble/fix-go-toolchain
...
Remove toolchain directive from go.mod
2024-12-04 21:14:43 +01:00
Christian Goll
477a7c39da
Merge pull request #1579 from anderbubble/known-issues
...
Initial documentation for "known issues"
2024-12-04 21:14:17 +01:00
Jonathon Anderson
8f02e932a4
Update github.com/opencontainers/runc to 1.1.14
...
Addresses https://github.com/warewulf/warewulf/security/dependabot/64
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-03 22:17:38 -07:00
Jonathon Anderson
cc3761bb59
Merge pull request #1527 from warewulf/dependabot/go_modules/main/github.com/golang/glog-1.2.3
...
Bump github.com/golang/glog from 1.2.0 to 1.2.3
2024-12-03 17:20:37 -07:00
dependabot[bot]
396a3c6030
Bump github.com/golang/glog from 1.2.0 to 1.2.3
...
Bumps [github.com/golang/glog](https://github.com/golang/glog ) from 1.2.0 to 1.2.3.
- [Release notes](https://github.com/golang/glog/releases )
- [Commits](https://github.com/golang/glog/compare/v1.2.0...v1.2.3 )
---
updated-dependencies:
- dependency-name: github.com/golang/glog
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-12-03 17:16:09 -07:00
Jonathon Anderson
49343591a9
Merge pull request #1553 from warewulf/dependabot/go_modules/main/github.com/Masterminds/sprig/v3-3.3.0
...
Bump github.com/Masterminds/sprig/v3 from 3.2.3 to 3.3.0
2024-12-03 17:04:58 -07:00
dependabot[bot]
c6f5f58d02
Bump github.com/Masterminds/sprig/v3 from 3.2.3 to 3.3.0
...
Bumps [github.com/Masterminds/sprig/v3](https://github.com/Masterminds/sprig ) from 3.2.3 to 3.3.0.
- [Release notes](https://github.com/Masterminds/sprig/releases )
- [Changelog](https://github.com/Masterminds/sprig/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Masterminds/sprig/compare/v3.2.3...v3.3.0 )
---
updated-dependencies:
- dependency-name: github.com/Masterminds/sprig/v3
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-12-03 17:01:41 -07:00
Jonathon Anderson
0518af3da2
Initial documentation for "known issues"
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-03 16:24:32 -07:00
Jonathon Anderson
bf47ec1968
Remove toolchain directive from go.mod
...
This directive specified a newer version of the go toolchain from the go
runtime used, and newer than our minimum supported.
- Fixes #1571
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-03 11:41:02 -07:00
Christian Goll
a58943feb1
Merge pull request #1560 from benibr/doc/install-container
...
userdocs: added basic Container description
2024-12-03 09:00:50 +01:00
Christian Goll
ecc37daff4
Merge pull request #1575 from anderbubble/deadcode-temp-fix
...
Disable deadcode check for previous golang versions
2024-12-03 08:55:05 +01:00
Jonathon Anderson
a9e591c106
Disable deadcode check for previous golang versions
...
Temporary fix for #1571
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-02 16:14:52 -07:00
Christian Goll
d584c14403
Merge pull request #1564 from anderbubble/issues/1447
...
Use a sentinel file to determine container readonly state
2024-12-02 09:03:02 +01:00