Jonathon Anderson
037c456bc4
Correct host overlay processing during configure
...
wwctl configure hostfile was using the /host/ path twice,
causing it to look in the wrong place for /etc/hosts.ww
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2022-11-11 10:56:07 -06:00
Christian Goll
35529527bb
added init function for empty NodeInfo
2022-11-11 14:59:15 +01:00
Logan Harbour
99ec5acb59
Fix typos
2022-11-08 09:53:22 -07:00
David McFarlane
0d6dcba38a
Fix use of uninitialised Tags map
2022-11-01 13:38:19 +11:00
Christian Goll
fee0bb20b7
use tag instead of nettag
2022-10-18 10:10:21 +02:00
Christian Goll
22f9c86c34
create memory for nettags
2022-10-18 10:02:53 +02:00
Christian Goll
4fe584547b
Merge branch 'development' into wwlog-newlines
2022-10-13 14:46:03 +02:00
Christian Goll
fab7e09aeb
Merge branch 'development' into container-info2
2022-10-13 10:53:49 +02:00
Christian Goll
396f3238c1
added size of containers
2022-10-13 10:35:17 +02:00
Christian Goll
71bf385cb7
add modifictation and creation date
2022-10-13 10:33:54 +02:00
Christian Goll
33504354c2
Merge branch 'development' into node-edit
2022-10-13 09:59:38 +02:00
Christian Goll
f55c5bf604
lines for better merging
2022-10-13 09:49:49 +02:00
Christian Goll
6ff4839b0f
Merge pull request #549 from mslacken/add-mtu
...
added mtu
2022-10-12 21:30:07 +02:00
Christian Goll
72f9fdacbf
Merge pull request #533 from anderbubble/container-build-exclude
...
Fix of container build include/exclude handling
2022-10-12 21:24:05 +02:00
Christian Goll
bdd985680c
Merge pull request #539 from mslacken/default-conf
...
Read the defaults for a node from defaults.conf
2022-10-12 21:22:59 +02:00
Christian Goll
f1bad3bc39
Added csv import of nodes
2022-10-10 11:06:30 +02:00
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
Christian Goll
9e41de9fdf
adde mtu
2022-09-30 16:26:14 +02:00
Christian Goll
91e032d7a2
added code for setting default values for NetDev
2022-09-30 16:12:03 +02:00
Christian Goll
a4fbe428e2
only show options with lopt
2022-09-23 14:47:17 +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
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
Christian Goll
7c453066fa
add short check if config can be written
2022-09-19 11:09:36 +02: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
Christian Goll
efd761f7c3
Read the defaults for anode from defaults.conf
2022-09-15 11:14:26 +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
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
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
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
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
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
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
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
351d5dbf0a
More generic defaults for warewulf.conf
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2022-08-24 03:58:09 -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