Commit Graph

1327 Commits

Author SHA1 Message Date
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
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
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
Gregory M. Kurtzer
37c2229e17 Merge pull request #519 from anderbubble/anderbubble-syncusers-log-period
Removed extra period from log message
2022-09-08 08:58:53 -07:00
Gregory M. Kurtzer
707e4fec55 Merge pull request #528 from anderbubble/syncuser-argument-description-typos
Minor typo fix in syncuser argument description
2022-09-08 08:58:39 -07:00
Jonathon Anderson
903ba7417e Minor typo fix in syncuser argument description
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-08 09:52:17 -06:00
Christian Goll
a023662b2d Merge pull request #524 from anderbubble/symlink-wwbackup
Fix a typo in symlink wwbackup implementation
2022-09-05 09:31:44 +02:00
Jonathon Anderson
cd8b0d86c5 Fix a typo in symlink wwbackup implementation
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-02 15:40:45 -06:00
Christian Goll
18eb531d4b fixed deletion of network and deletion of tags 2022-09-02 16:45:37 +02:00
Christian Goll
92c69a61f6 Merge pull request #518 from anderbubble/container-rocky-8-kernel-modules
Install kernel-modules in warewulf rocky-8 image
2022-08-31 21:04:47 +02:00
Jonathon Anderson
1ed5a531bb Removed extra period from log message
I think the `.` in `uid./gid not synced` is erroneous.
2022-08-31 11:53:37 -06:00
Jonathon Anderson
e72e382211 Install kernel-modules in warewulf rocky-8 image
Without the kernel-modules package installed I was not able to use apptainer, as squashfs was not available.
2022-08-31 11:50:12 -06:00
Christian Goll
255ff61dc8 adding netname option back 2022-08-31 17:05:28 +02:00
Christian Goll
cb0a7b402e Merge pull request #511 from anderbubble/issues/510
new man pages for warewulf.conf and nodes.conf
2022-08-31 11:51:05 +02:00
Christian Goll
bb6cf97953 Merge pull request #512 from anderbubble/dist-cleanup
Small dist cleanup
2022-08-31 11:47:34 +02:00
Christian Goll
b17f6ef5f7 Merge pull request #513 from anderbubble/wwapi-in-spec
Capture wwapi binaries in rpm spec
2022-08-31 11:46:10 +02:00
Christian Goll
bad70b986d Merge pull request #514 from anderbubble/ipmi-trim-whitespace
Trim whitespace from IPMI output
2022-08-31 11:42:15 +02:00
Jonathon Anderson
db29b9ff3e Trim whitespace from IPMI output
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-08-24 15:43:02 -06:00
Jonathon Anderson
e2b87ac63d Capture wwapi binaries in rpm spec
Naive implementation; but without some declaration rpmbuild fails.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-08-24 06:21:46 -06:00
Jonathon Anderson
1bfce7d1df Small dist cleanup
- Add .dist to gitignore
- Purge emacs temporary files from dist

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-08-24 06:18:32 -06:00
Jonathon Anderson
247c61295c Install new config file man pages
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-08-24 06:15:36 -06:00
Jonathon Anderson
6cfd028ee2 Initial commit: nodes.conf manpage
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-08-24 05:12:06 -06:00
Jonathon Anderson
77baa76dc0 Remove unnecessary config parameter examples
warewulf.datastore is being set to a null string, which is simply
prompting it to use the default.

dhcp.template doesn't appear to be used any more, now that dhcp
configuration has moved into the host overlay.

tftp.tftproot doesn't appear to be doing anything, is simply setting to
the empty string anyway, and is otherwise compiled-in.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-08-24 04:47:56 -06:00
Jonathon Anderson
351d5dbf0a More generic defaults for warewulf.conf
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-08-24 03:58:09 -06:00
Jonathon Anderson
c369ff8811 Add ipaddr6 to warewulf.conf man
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-08-24 03:08:35 -06:00
Jonathon Anderson
f1fddf81af Don't use all-caps for PRIVATE network in man
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-08-24 01:20:49 -06:00
Jonathon Anderson
79b49ccd3a Initial commit of new warewulf.conf manpage
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-08-24 01:14:12 -06:00
Christian Goll
063c781710 recreate CreateFlag based on NodeConf
This will always create the network named default,
so this has to be changed if a new netowk is set
2022-08-19 16:33:46 +02:00
Christian Goll
b485ea999f removed optionStrMap in favor of NodeConf
openStrMap is a map[string]string which is sent arround. This is now
done by using a unmarshalled NodeConf instead.
2022-08-18 19:22:55 +02:00
Christian Goll
2016588f36 fallten the Nodes and NodeProfile before write 2022-08-16 17:15:39 +02:00
Christian Goll
0ca17dd454 using functor for Get and GetReal 2022-08-16 15:38:07 +02:00
Christian Goll
f744934122 fixed linting 2022-08-12 15:52:38 +02:00
Christian Goll
02d47e8f11 automatic add primary for single netdev 2022-08-12 15:41:57 +02:00
Christian Goll
bc647f0bf3 Fix IpCIDR for templates 2022-08-12 10:17:32 +02:00
Christian Goll
b2dc31e20b fixed mergin profiles into nodes 2022-08-12 09:30:16 +02:00
Christian Goll
20fa9d2e2a fix regression on container import 2022-08-11 16:38:43 +02:00
Christian Goll
8c2d40881d use reflect on overlays 2022-08-10 17:09:10 +02:00
Christian Goll
41d12888ab reflections for unmarshal 2022-08-10 14:16:48 +02:00
Christian Goll
d819eef792 tags for ipmi and kernel 2022-08-04 20:07:24 +02:00
Christian Goll
ba46e34a4d merging profile update 2022-08-03 14:49:50 +02:00
Christian Goll
ed5b2bbf35 using tag instead of key 2022-08-03 13:44:12 +02:00
Christian Goll
96731a4b87 node list imporvement 2022-08-03 11:47:25 +02:00