Commit Graph

1616 Commits

Author SHA1 Message Date
Christian Goll
7b958984c8 constant net naming scheme and NetworkManager rule
Apperently the rules in /etc/systemd/network are not
honored by NetworkManager which loads earlier than
systemd-networkd, so adding a rule for NetworkManager
2022-10-06 17:37:38 +02:00
Michael L. Young
d217279a04 [CI/CD] Build Testing Improvement
We are pinning version 1.17 for the linting workflow. Go 1.16
has been EOL for almost two years and even EL7 releases have
1.17 available now. Removed 1.16 from our test matrix.

This commit does the following:

* Update the build testing workflow to run on development branch
* Remove go 1.16 and add 1.19 to test build workflow

Signed-off-by: Michael L. Young <myoung@ciq.co>
2022-10-06 00:55:38 -04:00
Michael L. Young
ec555f2d5e [CI/CD] Check owner of repo before running documentaton GH action
If a fork is running GH actions, do not create the static
documentation and try to push to the warewulf documentation repo.

Signed-off-by: Michael L. Young <myoung@ciq.co>
2022-10-05 23:40:05 -04:00
Christian Goll
e0b6b4625a only set new device name if mac address is defined 2022-10-05 17:37:56 +02:00
Christian Goll
b1a02c7f63 added overlay for NetworkManager 2022-10-04 10:28:57 +02:00
griznog
5ece5ff4dc Add execreload and execstop to warewulfd.service. 2022-10-03 10:03:50 -05:00
Christian Goll
9e41de9fdf adde mtu 2022-09-30 16:26:14 +02:00
Christian Goll
d57128dbd7 added overlay for NetworkManager 2022-09-30 16:12:11 +02:00
Christian Goll
91e032d7a2 added code for setting default values for NetDev 2022-09-30 16:12:03 +02:00
Brian Clemens
f8d9dbc61e Correct static folder location 2022-09-27 13:27:11 +09:00
Christian Goll
3b543bb117 Merge branch 'node-edit' of github.com:mslacken/warewulf into node-edit 2022-09-23 15:54:46 +02:00
Christian Goll
ddf72b6b09 import nodes from file 2022-09-23 15:49:40 +02:00
Christian Goll
a4fbe428e2 only show options with lopt 2022-09-23 14:47:17 +02:00
Christian Goll
30e22ac974 Merge pull request #544 from mslacken/ssh-use-primary
Use primary netdev for ssh
2022-09-22 10:32:53 +02:00
Christian Goll
6c35cfd6f5 fix typo 2022-09-22 10:31:50 +02:00
Christian Goll
d0bfac6e24 add nodes as alias for node 2022-09-22 07:56:53 +02:00
Christian Goll
9f23bddfc6 assume that there is just one primary netdev 2022-09-21 19:25:34 +02:00
Christian Goll
59f9589841 try to use same network name for all nodes 2022-09-21 11:39:04 +02:00
mslacken
e497e26cb4 Use primary netdev for ssh 2022-09-20 21:05:54 +02:00
Christian Goll
fc39209fbb Merge pull request #538 from wesley800/development
remove exit from ssh_setup.*sh
2022-09-20 11:02:50 +02:00
Christian Goll
5b06d5cb34 only show options with lopt 2022-09-19 19:49:05 +02:00
Christian Goll
c3416de3cb fix for go1.16 and possible sigsev 2022-09-19 17:10:06 +02:00
Christian Goll
8e0fd64c7e add profile edit (copy&paste) from node edit 2022-09-19 16:01:36 +02:00
Christian Goll
3cc9e12e69 add yaml strings as comment 2022-09-19 15:23:33 +02:00
wesley800
6954eefe5e properly truncate dest file in util.CopyFile 2022-09-19 21:11:51 +08:00
wesley800
692effd5c3 remove exit from ssh_setup.*sh 2022-09-19 21:11:45 +08:00
Christian Goll
7c453066fa add short check if config can be written 2022-09-19 11:09:36 +02:00
Christian Goll
8a10e623fc Merge pull request #543 from anderbubble/overlay-show-argument-handling
Fix argument handling for overlay show rendering
2022-09-19 10:01:28 +02:00
Christian Goll
23d2cf8801 Merge pull request #542 from anderbubble/container-show-kernelversion
Fix output of wwctl container show
2022-09-19 09:03:46 +02:00
Jonathon Anderson
fd2fa9c027 Fix argument handling for overlay show rendering
Error logging for overlay show rendering incorrectly checked
the overlay name rather than the path to the file. It also
used wwlog (which goes to stderr) to output the render. This
commit replaces explicit args[] references with their named
equivalents from earlier in the function, correcting those
references along the way, and outputs the final render with
fmt.Print.
2022-09-16 22:39:51 +00:00
Jonathon Anderson
4661b02a3d Move "not found" presentation to CLI 2022-09-16 21:56:39 +00:00
Jonathon Anderson
14b45e37c0 Fix output of wwctl container show
Commit d8cd6049 introduced erroneous output coming from an
inner function of container show, and (seemingly) erroneously
replaces valid kernel versions with "not found". This commit
fixes both of those issues, and moves the output to the outer
cli function.
2022-09-16 21:33:49 +00:00
Christian Goll
54dd8b3d2f linter fixes as some errors may not really occur 2022-09-16 17:02:17 +02:00
Christian Goll
7087f3e4a1 add edit command for direct edit of node entries 2022-09-16 16:51:07 +02:00
Jonathon Anderson
0b3e862bea Remove trailing newline from wwlog
I noticed that some wwlog calls included a trailing newline, but others
did not. I tested both in isolation and discovered that the behavior was
consistent regardless of whether a trailing newline was included. I
further confirmed in code that wwlog appends a trailing newline
automatically if it is not present; so a trailing newline is unnecessary
in individual calls.

This commit removes trailing newlines from all calls to make them
consistent. It also replaces two calls to wwlog.Printf. (see #534)

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-15 12:38:03 -06:00
Brian Clemens
04ee8cc967 feat(docs): New documentation
Convert docs to mkdocs, move back into repo, publish to repo
2022-09-15 21:00:17 +09:00
Christian Goll
efd761f7c3 Read the defaults for anode from defaults.conf 2022-09-15 11:14:26 +02:00
Christian Goll
8c0710e412 Merge pull request #536 from mslacken/container-delete
remove also the container image on delete
2022-09-14 21:10:40 +02:00
Christian Goll
c75f4e468c remove also the container image on delete 2022-09-14 14:42:33 +02:00
Christian Goll
6cc58fcfff Merge pull request #534 from anderbubble/wwlog-printf-cleanup
Replace all instances of wwlog.Printf
2022-09-14 08:18:44 +02:00
Christian Goll
2352aa0d51 Merge pull request #477 from mslacken/configure-hostfile
readded configure hostfile command
2022-09-13 11:26:23 +02:00
Christian Goll
09c6986114 Merge pull request #530 from anderbubble/issues/486
Fix handling of uid and gid arguments during chown
2022-09-13 07:47:01 +02:00
Christian Goll
8b306872aa Merge pull request #531 from anderbubble/chown-default-gid
Don't change unspecified gid to 0 during chown
2022-09-13 07:31:22 +02:00
Christian Goll
edf42d61aa Merge pull request #495 from mslacken/reflections-cmdline
Use reflection for node and profile manipulation
2022-09-12 16:36:39 +02:00
Jonathon Anderson
07a43ff164 Update CHANGELOG for excludes fix
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-11 19:25:40 -06:00
Jonathon Anderson
ff54fbc8d7 Simplify util.FindFilterFiles
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-11 19:25:40 -06:00
Jonathon Anderson
cac614a4b7 Correct handling of exclude patterns
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-11 19:25:40 -06:00
Jonathon Anderson
22910958b5 Replace all instances of wwlog.Printf
wwlog provides named loggers for each level, which requires
less code and is clearer than wwlog.Printf. The code has
included a mix of both, but this commit consolidates existing
code on the per-level functions.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-11 08:00:23 -06:00
Jonathon Anderson
e2b5350834 Fix handling of uid and gid arguments during chown
It appears that the intended behavior of overlay chown was changed
in 00d8d42e9, but the argument handling was not updated to reflect
the removal of overlayKind. This led to a crash when only the
uid was specified, and a processing of the gid as the uid
otherwise.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-11 00:38:05 -06:00
Jonathon Anderson
4bda8cd29e Don't change unspecified gid to 0 during chown
Specifying 0 for gid as a default during chown causes the
gid to be changed to 0 when left unspecified. Changing the
default value to -1 causes the gid to be left unmodified
when unspecified, which is a less surprising behavior.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-10 14:51:56 -06:00