Commit Graph

16 Commits

Author SHA1 Message Date
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
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
Christian Goll
bc647f0bf3 Fix IpCIDR for templates 2022-08-12 10:17:32 +02:00
Christian Goll
8c2d40881d use reflect on overlays 2022-08-10 17:09:10 +02:00
Christian Goll
b548d8583d reflection on constructor 2022-08-03 11:28:15 +02:00
Christian Goll
29573e26ad added more values 2022-07-07 11:39:02 +02:00
Christian Goll
dfe3f907b9 moved TemplateStruct init to own function 2022-06-08 15:10:43 +02:00
griznog
bada0f738b Add BuildTimeUnix containing Unix time (seconds since epoch). 2022-04-15 10:36:40 -05:00
Christian Goll
5adc0e3093 add NetworkCIDR for overlays 2022-04-13 20:19:35 +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
c0f7ecf357 store the ovelats as yaml list 2022-03-24 19:45:51 +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
6fd140e7b2 added IpmiWrite to underlyung datastructure 2022-03-02 21:25:20 +01:00
Gregory Kurtzer
d961f8b8ea Minor merge fix 2022-02-27 18:08:48 -08:00
Christian Goll
eeb062cf85 moved dhcpd configuration to host 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