Christian Goll
12460caa04
just return negated checks
2023-01-10 16:20:52 +01:00
Christian Goll
626b9769ac
also handle default value
2023-01-09 11:57:11 +01:00
Christian Goll
7a88ff239f
checking only for false outcome
2023-01-05 11:03:08 +01:00
Christian Goll
09f00b9cac
fix typo for opening defaults.conf
2023-01-04 14:23:47 +01:00
Christian Goll
a4a80e0268
GetB must not ignore altvalue
2023-01-04 14:03:02 +01:00
Jonathon Anderson
423e319bf4
Add --- to the head of FallBackConf
...
Why have I done this?
- Because defaults.conf had a starting newline, which bugs me.
- Because moving the first line of FallBackConf looks unlovely.
- Because yaml happens to have a --- document-start syntax.
I completely agree that this is (hopefully) a no-op change;
but if anyone else thinks it makes things aesthetically more
pleasing, and agrees that it doesn't break anything, go ahead
and merge. ^_^
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2022-12-13 17:48:38 -07:00
Christian Goll
d19dc752ff
Merge pull request #580 from jtfrey/gzip-fixup
...
VNFS gzip: fallback to redirected stdout
2022-12-09 09:56:16 +01:00
Christian Goll
f8429e4d01
Merge pull request #581 from mslacken/ipxeDefault
...
need ipxe template in defaults
2022-12-09 09:53:14 +01:00
Christian Goll
c7abc078bf
Merge pull request #585 from mslacken/fix-container-list
...
react on the error accordingly
2022-12-09 09:53:01 +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
Christian Goll
241425f525
react on the error accordingly
2022-12-07 15:10:18 +01:00
Jeffrey Frey
17d6448180
Fix unhandled return value from Wait()
...
Discard return error from proc.Wait() to pass lint tests
2022-11-30 16:08:58 -05:00
Christian Goll
f7b67b93a3
need ipxe template in defaults
2022-11-30 15:33:07 +01:00
Jeffrey Frey
8c6f85a0a9
Update util.go
2022-11-29 15:13:00 -05:00
Jeffrey Frey
fd1f197468
Update util.go
2022-11-29 15:09:14 -05:00
Jeffrey Frey
52b932081c
Scoping issue with err
...
Use of := inside conditional body overrode scope of return value `err`
2022-11-29 14:40:06 -05:00
Jeffrey Frey
e9d7432e79
Fixup spacing
...
Tabs, not spaces.
2022-11-29 14:10:16 -05:00
Jeffrey Frey
9c3cc59d85
Missing --keep option, older versions of gzip
...
Older versions of the `gzip` utility do not understand the `--keep` flag. If `gzip` is used and initially exits in error with the text "unrecognized option" produced on stderr, use the write-to-stdout behavior for `gzip` and open and attach the desired output file to that command's stdout.
2022-11-29 14:03:58 -05:00
Christian Goll
79ed2a33ff
added simple test for transformer.go
2022-11-29 14:30:41 +01:00
Christian Goll
53be931f87
fix tests for fransfomer
2022-11-29 10:53:53 +01:00
Jonathon Anderson
15879eb991
Use node.NewInfo constructor in configure hostfile
...
Also used in overlay, as I was looking there already.
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2022-11-11 11:42:40 -06:00
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
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
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