Commit Graph

414 Commits

Author SHA1 Message Date
Christian Goll
5adc0e3093 add NetworkCIDR for overlays 2022-04-13 20:19:35 +02:00
Christian Goll
96f220a950 Merge pull request #380 from mslacken/profile-fixup
profile fixup, checked and worked as expected
2022-04-13 14:43:13 +02:00
griznog
75e075ab52 Ignore dotfiles when building overlay list. 2022-04-11 11:15:25 -05:00
Christian Goll
e3b2ca39d8 simplified range expression 2022-04-11 14:51:35 +02:00
Christian Goll
4782d7e726 fixup profile handling 2022-04-11 14:41:43 +02:00
MatthewHink
086401a07c unit test + nil check pointers 2022-04-09 09:19:03 -04:00
Christian Goll
db26527639 Merge pull request #376 from mslacken/kernel-import
fix typo in kernel import
2022-04-09 13:35:16 +02:00
Christian Goll
68946d344d Merge pull request #370 from MatthewHink/mhink-test
Mergeing as need to on updated main for the tests to work
2022-04-09 13:34:17 +02:00
Christian Goll
415445b5ca update test format 2022-04-09 13:31:14 +02:00
Christian Goll
3e0e462dce fix typo in kernel import 2022-04-09 13:06:58 +02:00
Christian Goll
38b166945a reservre meomory for tempalte struct 2022-04-08 17:34:52 +02:00
Christian Goll
3bbddf4a8c create config entries for profiles 2022-04-08 17:34:52 +02:00
Christian Goll
fa052a0f57 simplified GotReal 2022-04-08 15:15:16 +02:00
Christian Goll
ae2b1ce2ae check for nil vaule of Kernel and Impi 2022-04-08 15:06:40 +02:00
Christian Goll
197c663a97 memory for Ipmi and Kernel Entry FindAllProfiles 2022-04-08 15:01:14 +02:00
Christian Goll
49bb9a40f0 reserve memory ofr kernel and ipmi entry 2022-04-08 14:47:19 +02:00
MatthewHink
3c01728aa5 Fix 365. Nil checks around pointers in nodes.conf. 2022-04-07 16:32:26 -04:00
Christian Goll
e0681148e9 compiling config_defaults, unmarshall all values 2022-04-07 12:43:16 +02:00
Christian Goll
0ef96c575d Added SEC prefix for wwlog levels
This SEC-levels are meant for internal documentation of security
relevant messages so that this code sections are marked.
2022-04-07 11:05:00 +02:00
Christian Goll
95d1b23921 use secure overlay dir
If there is a user writeable file in the host overlay, a user can
create arbitrary files on the host root file system. Although these
files will belong to this user, this might allow users to modify
any files.
So this patch restricts the access to the host overlay to root and
produces a warning if this was changed.
2022-04-07 11:05:00 +02:00
Christian Goll
7f1636c9a9 created syncuids.go with code from utils.go 2022-04-06 21:44:00 +02:00
Christian Goll
61eae386af Just check syncuids on default 2022-04-06 21:44:00 +02:00
Christian Goll
1afa58ae57 Fixed wrong collision for group 0(root) 2022-04-06 21:44:00 +02:00
Christian Goll
23ba9ca61a fixed linting 2022-04-06 21:44:00 +02:00
Christian Goll
8c7fd7d140 basic function comparing uids of host/container 2022-04-06 21:44:00 +02:00
Christian Goll
95050a44ce add user defined keys for networks/netdev
Every network in the profile and for the nodes can have induvidual keys values
pairs, called Tags, which are propergated to the templates. So they can be used
for things like MTU size like
  `wwct node set node01 --nettag mtu=9000`
and in in ifcfg.xml.ww
```
{{ if $netdev.Tags.mtu -}}
<mtu> {{ $netdev.Tags.mtu }} </mtu>
{{ end -}}
```
2022-04-06 21:36:17 +02:00
Christian Goll
16fa2518fa set not ipv6 if no ipv4 present 2022-04-06 21:36:17 +02:00
Christian Goll
d13a66e4a4 Merge pull request #350 from hpcng/nfs-cleanup
removed old nfs style from config
2022-04-06 21:29:07 +02:00
jcsiadal
bfde70cf8a Error free lint
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-04-04 17:01:11 +00:00
jcsiadal
bd3edb9e7f Udated constructors/mods
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-04-04 16:13:09 +00:00
jcsiadal
1fda01fc36 Datastructure update
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-04-04 16:13:09 +00:00
Christian Goll
b25068521a removed old nfs style from config 2022-03-31 16:02:18 +02:00
Christian Goll
d10eca1d89 Merge pull request #348 from mslacken/advanced-templatinb
refactored template processing functions
2022-03-30 21:32:20 +02:00
Christian Goll
175e387f63 removed unused varaible 2022-03-30 17:54:13 +02:00
Christian Goll
3a457ed744 renamed option to 'host overlay' 2022-03-30 17:27:13 +02:00
Christian Goll
2d2fb13423 warewulf.conf option disable host overlays 2022-03-30 17:23:38 +02:00
Christian Goll
ab32625e7a refactored template processing functions 2022-03-30 17:11:03 +02:00
Christian Goll
c0f7ecf357 store the ovelats as yaml list 2022-03-24 19:45:51 +01:00
Christian Goll
baae8324c9 add noit always newline on template 2022-03-24 10:59:33 +01:00
Christian Goll
6fab42fda1 do not write master file for templates 2022-03-21 11:59:33 +01:00
Christian Goll
10b5f606d4 set default value for gateway 2022-03-21 11:29:49 +01:00
Christian Goll
d3b10624b0 Merge branch 'ipv6' 2022-03-18 09:37:23 +01:00
Christian Goll
aadfdfe1e6 remove rootfs from overlaydir if exits 2022-03-17 15:36:07 +01:00
Christian Goll
265dbad6c1 do not combine overlays any more 2022-03-17 12:50:51 +01:00
Christian Goll
208baff560 fix regression on overlay image creation 2022-03-17 12:25:38 +01:00
Christian Goll
e18e98e743 added missing line break 2022-03-16 20:14:05 +01:00
Christian Goll
dbdcee0bb7 check for magic file pattern 2022-03-16 19:45:14 +01:00
Christian Goll
0d62a26368 wwctl overlay buld fixes 2022-03-16 17:28:04 +01:00
Christian Goll
9dbf371174 overlay build allow output to given dir 2022-03-16 12:23:33 +01:00
Christian Goll
55bf1695de initial commit of simple ipv6 support
As soon as in warewulf.conf a value for ipaddr6 is defined
all nodes will get a derived ipv6 address if not the ipv6
is not explicitly set.
2022-03-15 15:57:35 +01:00