Christian Goll
05237935eb
node option also for shell and respect env $SHELL
2023-01-31 18:05:18 +01:00
Christian Goll
317cd5d4e0
add option for node rendering
2023-01-31 17:45:09 +01:00
Christian Goll
157c3cd923
getting defaults mounts from warewulf.conf
2023-01-31 16:04:08 +01:00
Christian Goll
d82314460f
added support for mounts.conf for container exec
2023-01-31 16:04:07 +01:00
Christian Goll
71a3867bbe
create temporary dir for overlayfs not in __child
2023-01-31 16:04:07 +01:00
Christian Goll
6d560ac02a
create overlayfs for ephermal mount points
2023-01-31 16:04:07 +01:00
Christian Goll
a4202df508
create overlay of missing mount points
2023-01-31 16:04:07 +01:00
Christian Goll
d30d523866
respect read only rootfs for containers
2023-01-31 16:04:07 +01:00
Christian Goll
7ade65c73f
cleaned up container exec __child
2023-01-31 16:04:07 +01:00
Christian Goll
5249931ab0
do not call container exec for shell call
2023-01-31 16:04:07 +01:00
Christian Goll
55f61a7c18
pass log level to container exec
2023-01-31 16:03:57 +01:00
Jonathon Anderson
5b50ef724c
Fix 'nodes' alias for 'node' not 'profile'
...
Fixes #609
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-01-06 14:17:46 -07:00
Christian Goll
718064e671
add confirmation for wwctl container delete
...
close #606
Signed-off-by: Christian Goll <cgoll@suse.de >
2022-12-22 15:00:12 +01:00
Christian Goll
9539e20a4e
add -y flag to wwctl profile add
...
close #610
Signed-off-by: Christian Goll <cgoll@suse.de >
2022-12-22 14:54:42 +01:00
Christian Goll
0e6223b6f8
do not confirm deleting zero nodes
...
close #603
Signed-off-by: Christian Goll <cgoll@suse.de >
2022-12-22 14:48:58 +01:00
Jonathon Anderson
248c5896ce
Correct confirmation output in profile set
...
Closes #600
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2022-12-17 18:00:23 -07:00
Christian Goll
0a83dd4508
Merge pull request #579 from brianphan/ww-shell-env-var
...
Env var to identify when in container shell
2022-12-09 09:53:45 +01:00
Jonathon Anderson
78b857a3e4
Whitespace cleanup
...
Removes trailing whitespace from all source files.
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2022-12-08 18:59:56 -07:00
Brian Phan
b0389e1337
Set WW_CONTAINER_SHELL to Container Name
2022-12-06 09:24:01 -08:00
Brian Phan
7cd8f030ec
Use 1 instead of true
2022-11-30 07:23:13 -08:00
Brian Phan
3e8bd09990
Env var to identify when in container shell
2022-11-29 09:15:09 -08:00
Christian Goll
5413eb611d
removed stray debug line
2022-10-27 12:08:32 +02:00
Christian Goll
721a52239f
opening file with twi seperate descriptors
2022-10-27 12:03:10 +02:00
Christian Goll
21f7a1f8c3
fix linting
2022-10-27 11:32:30 +02:00
mslacken
12efa0cc68
check if new template file was modified
2022-10-14 18:18:58 +02:00
mslacken
ab0ee87629
updated linter and fixed deprecated stuff
2022-10-14 17:40:16 +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
98e942e092
add simple node export
2022-10-13 10:13:31 +02:00
Christian Goll
33504354c2
Merge branch 'development' into node-edit
2022-10-13 09:59:38 +02:00
Christian Goll
425ced1696
Merge pull request #546 from mslacken/alias-nodes
...
add nodes as alias for node
2022-10-12 21:29:27 +02:00
Christian Goll
f1bad3bc39
Added csv import of nodes
2022-10-10 11:06:30 +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
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
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
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
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