Christian Goll
1b02c89ca7
moved overlay parsing to own function
2022-06-08 15:08:43 +02:00
Gregory Kurtzer
e188edcf7a
gofmt cleanup
2022-05-25 14:17:01 -07:00
Carter Dodd
a36467b2a8
Merge upstream
2022-05-13 19:42:18 -05:00
Carter Dodd
379faad51d
Refactor of server, logging, building of images, template updates
...
* Combine provision response handling, add hwaddr and interface to dhcp
* Simplify stage cases, add backward compatible uri parse
* Move control of image compression to client
* Fix kernel search path for ubuntu, buffer template generation
* Implement cpio and gz as functions, add log named functions
* Generalize fs image creation routine
* Combine daemonLogf to generalized wwlog
* Fix template newline insertion, update dhcp and hosts tmpl
* Update IPXE template to handle non-compressed files
* Update DHCP template to set network interfaces and server IP assignment
* Update DHCP/hosts templates to choose a host-name self-consistently
2022-05-13 16:52:59 -05:00
Christian Goll
9c21f2bade
Merge pull request #419 from jcsiadal/nodefault
...
Renames instances of "Default" to "Primary" in netdev source code
2022-05-12 11:58:47 +02:00
Christian Goll
121c12b5e4
Readd BuildTimeUnix
2022-05-05 16:15:06 +02:00
Christian Goll
de819b5583
only add split function in templates
2022-05-05 16:13:01 +02:00
jcsiadal
9b6b93a5cb
Rename default to primary in src
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
2022-05-05 03:13:21 +00:00
Christian Goll
7ce286ac3e
updated overlay includes mire vars and split func
2022-05-03 14:52:17 +02:00
griznog
bada0f738b
Add BuildTimeUnix containing Unix time (seconds since epoch).
2022-04-15 10:36:40 -05:00
Christian Goll
469e731adb
Merge pull request #385 from mslacken/network-cidr
...
add NetworkCIDR for overlays
2022-04-14 13:57:23 +02:00
Christian Goll
e29aea8ae3
using stirng for ipmiwrite storage
2022-04-14 12:50:38 +02:00
Christian Goll
5adc0e3093
add NetworkCIDR for overlays
2022-04-13 20:19:35 +02:00
griznog
75e075ab52
Ignore dotfiles when building overlay list.
2022-04-11 11:15:25 -05:00
Christian Goll
38b166945a
reservre meomory for tempalte struct
2022-04-08 17:34:52 +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
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
jcsiadal
bfde70cf8a
Error free lint
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
2022-04-04 17:01:11 +00:00
Christian Goll
175e387f63
removed unused varaible
2022-03-30 17:54:13 +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
d3b10624b0
Merge branch 'ipv6'
2022-03-18 09:37:23 +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
Christian Goll
5568b082c4
fixed linting
2022-03-11 13:59:20 +01:00
Christian Goll
ccf5a349be
split up BuildAllOverlays
2022-03-11 12:09:17 +01:00
Christian Goll
afac77dbbe
allow multiple generic and wwinit overlays
2022-03-11 11:50:38 +01:00
Christian Goll
5ac75661c9
Only write to IPMI if this is explictly wanted
2022-03-02 21:24:05 +01:00
Gregory Kurtzer
d37caa7f16
Merge branch 'main' of github.com:hpcng/warewulf into jcsiadal-loops
2022-02-27 18:06:34 -08:00
Gregory M. Kurtzer
88832420ca
Merge pull request #306 from gmkurtzer/container_kernel_integration
...
Utilize containerized kernel by default
2022-02-27 18:03:25 -08:00
mslacken
ecba1bdb76
do not always write .wwbackup files
...
Signed-off-by: mslacken <christian.goll@gmail.com >
2022-02-26 22:39:50 +00:00
Christian Goll
27b28a2a1a
fixed linting
2022-02-26 22:39:50 +00:00
Christian Goll
14b59f987d
added IncludeBlock to template functions
2022-02-26 22:39:50 +00:00
Christian Goll
e4ac802dca
added abort function for templates
2022-02-26 22:39:50 +00:00
Christian Goll
3bbc705cef
added WarewulfConf for templating
2022-02-26 22:39:50 +00:00
Christian Goll
ad45200f7a
extended tstruct for templating
...
- tstruct is in new datastructure.go
- updated fstab.ww to new syntax
2022-02-26 22:39:50 +00:00
Christian Goll
8d2d10d4ab
Implemented BuildHostOverlay
...
BuildHostVoerlay will walk though OVERLAYDIR/host and copy the contents to the root dir where wwctl is running, so use with care
2022-02-26 22:39:50 +00:00
Gregory Kurtzer
1203186194
Support kernel overrides from the host or other containers
2022-02-17 07:37:04 +00:00
Gregory Kurtzer
104bc7527d
Restored deleted kernel components for overrides
2022-02-17 06:21:40 +00:00
David McFarlane
4a4ca41db0
Initialise Keys map for overlay templates
2022-02-17 16:40:16 +11:00
Gregory Kurtzer
5a0c13225e
Utilize containerized kernel and remove kernel Support
2022-02-15 06:49:24 +00:00
Gregory Kurtzer
86db0046b9
"Key" backwards compatibility for overlay templates
2022-02-11 20:17:02 +00:00
Gregory Kurtzer
ffaf794a42
Changed "key" paramaters to tags and cleaned up interface
2022-02-11 05:52:46 +00:00