Christian Goll
5c23a4cdde
added {{ .Overlay }} to templates
...
{{ .Overlay }} contains the overlay name in which the template is
located, or an empty string if RenderTempalte is called outside the
warewulf overlay tree.
- Closes #1052
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-04-17 21:40:32 -06:00
Christian Goll
71f5d42942
Add a read write mutex for node status
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-04-17 12:55:02 -06:00
Xu Yang
555947529f
make necessary changes for code updates
...
Signed-off-by: Xu Yang <xyang@ciq.com >
2024-04-04 00:17:30 -06:00
Xu Yang
5956f2e9a1
use marshalindent instead of marshal
...
Signed-off-by: Xu Yang <xyang@ciq.com >
2024-03-19 03:04:20 -06:00
Xu Yang
16183e603c
add multiple formats support
...
Signed-off-by: Xu Yang <xyang@ciq.com >
2024-03-19 01:48:08 -06:00
Yong Qin
0aca225ef7
Fixed a bug with profile list when kernelargs are set with 'var=val'
...
format. This also removed the unnecessary '--' for the source profile
since it's never used.
2024-03-11 11:04:21 +01:00
John Hanks
a7b5f6ac94
Drop 'tr' as a custom function.
2024-03-11 09:36:56 +01:00
John Hanks
cbf9178f10
Provide sprig functions in overlay templates
2024-03-11 09:36:52 +01:00
Christian Goll
b387c86e6e
contruct network from nodeInfo not NodeConf
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-02-21 10:43:59 +01:00
Christian Goll
ff10bc95bb
const string for Version, Release, Confversion
...
The Version (e,g, 4.4 ), Release (git hash) and Confversion (e.g. 44)
must be compiled into the code so that they can't be changed during run
time and ensure this with the compiler
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-02-17 10:22:44 -07:00
Christian Goll
1fca0057d3
updated WW_INTERNAL to 45 for 4.5.x release
...
Internal version update is necessary as new structures were added,
most obviously the disk, partitions and file system structures.
Old configurations will work as expected.
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-02-16 20:12:51 -07:00
Christian Goll
5e94766895
do not export version and rc
...
create also a new warewulf.conf so that the compiled
in paths are in sync with the configuration
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-02-16 17:38:34 -07:00
Christian Goll
24cb00e068
removed doubled entries form conf.Path
...
tftp.tftproot was also avlailable under paths.tftdir, removed
paths.tftpdir
warewulfconf.datastore was also availbale under
paths.datadir, remove paths.datadir
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-02-16 17:38:34 -07:00
Christian Goll
dcb21af5ba
added check if commas can be set
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-02-06 23:16:59 -07:00
Xu Yang
74480ab494
fix the bug that configuration expects CIDR format
...
Signed-off-by: Xu Yang <xyang@ciq.com >
2024-01-30 21:20:10 -07:00
xu yang
7746854732
Fix error when editing node
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-01-30 17:10:52 -07:00
Jonathon Anderson
a1832ad8c1
Complete transfer of Warewulf from HPCng
...
Warewulf is now being maintained in its own GitHub organization at
github.com/warewulf
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-01-26 21:35:04 -07:00
jason yang
c0b9c0996a
move hostlist code into internal folder
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2024-01-24 22:00:07 -07:00
jason yang
8f7b8b641b
change message level from warn to debug
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2024-01-24 21:36:19 -07:00
Jonathon Anderson
69e9cf7e85
Merge pull request #1022 from JasonYangShadow/issue/583
...
add container rename support
2024-01-24 19:59:41 -07:00
jason yang
d0b396b89c
fix tag ignored issue
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2024-01-24 15:25:48 -07:00
Jonathon Anderson
45542827dd
Remove built images when renaming a container
...
Renaming a container causes its images to be abandoned in the previous
name. This causes those images to be removed after a successful rename.
New images can be rebuilt during the rename using the `--build`
argument.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-01-24 15:11:21 -07:00
jason yang
d262ec10ef
Add container rename support
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2024-01-24 15:11:16 -07:00
Jonathon Anderson
5d6ef1882d
Remove whitespace damage
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-01-21 00:18:38 -07:00
Christian Goll
bd54993e16
refactored FindFiles
...
Previous version relied on fspath.Math which didn't match
nested sub directories.
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 23:23:15 -07:00
Christian Goll
11b26e7e8c
added symlink testing
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 23:23:15 -07:00
Christian Goll
36686d4455
fixed kmod creation
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 23:23:15 -07:00
Christian Goll
67e526d726
added test and reafctorred kernel.Build
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 23:23:15 -07:00
Jonathon Anderson
a602971146
Avoid reporting an empty "from" value
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-01-17 23:12:35 -07:00
Christian Goll
d6ef1a86ce
prpfiles can be exluded with ~ prefix
...
Used the ~ as prefix as ! will mess up with yaml syntax
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 22:04:05 -07:00
Christian Goll
85eaa20708
overlays from different profiles are merged
...
If a node contains several profiles and these profiles have
overlays attached, these profiles are now merged. Overlays
can't be excluded as this can not be displayed to the user
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 21:51:05 -07:00
Christian Goll
725176cfed
cleanup code after review
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 18:02:04 -07:00
Christian Goll
4379c4c18d
use grub/shim from host system
...
Also the boot method is now configured globaly as this is
the only way to make sure that unkonwn nodes get the right
stuff
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 18:02:04 -07:00
Christian Goll
724441dc79
added test for shim and efi send
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 18:02:04 -07:00
Christian Goll
0c9bf78cd0
using ProvisionSend instean of GrubSend
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 18:02:04 -07:00
Christian Goll
60dc8f6251
enable grub boot for all nodes
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 18:02:04 -07:00
Christian Goll
03ef7447e9
copy shim/grub on default profile container change
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 18:02:04 -07:00
Christian Goll
2fe98e5f55
default profile needs to have a container
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 18:02:04 -07:00
Christian Goll
a36cb23319
added shim/grub find to provision process
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 18:02:04 -07:00
Christian Goll
5efaf6d9f5
added extra OUTPUT level
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-15 23:22:00 -07:00
Christian Goll
aaadf26b90
separate writer for wwlog.Info
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-15 23:13:03 -07:00
Christian Goll
72b7f0aa5c
Merge pull request #1017 from brianphan/fix-10-persistent-net-link
...
Update 10-persistent-net.link.ww
2023-12-22 11:00:24 +01:00
Jonathon Anderson
feeb6211af
Remove device: eth0 from dummy interface
...
With eth0 specified as the default interface device, all interfaces by default
were attempted to be renamed to eth0. This didn't break before because device
renaming wasn't working for multiple interfaces in general; but now that it's
fixed, we should no longer be setting a default interface name.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2023-12-21 22:11:44 -07:00
Jonathon Anderson
6e93e8f3a8
Fix relative ipxe paths
...
IPXESOURCE is pointing to /usr/share/ipxe/ by default, so the `ipxe/`
directory should not be included in the compiled-in relative defaults.
Fixes a bug in #1010
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2023-12-21 20:21:49 -07:00
Christian Goll
0e6c67b87c
Merge branch 'main' into distro-ipxe
2023-12-21 08:09:36 +01:00
jason yang
5785d15497
enable the build flag
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2023-12-12 17:29:50 -07:00
jason yang
231987ecfc
fix a bug when replacing existing containers
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2023-12-12 17:06:28 -07:00
Jonathon Anderson
9c698d7a13
Merge pull request #932 from mslacken/WarnNotErr
...
warn and don't show scary error on syncuids
2023-12-09 02:19:03 -07:00
Christian Goll
77c33c777e
Warn and don't show a scary error in syncuser
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2023-12-09 02:12:46 -07:00
Christian Goll
7de3c1c5cd
Don't panic on malformed passwd
...
Fixes #527
Signed-off-by: Christian Goll <cgoll@suse.com >
2023-12-09 02:05:53 -07:00