From 8b552fe5ca7af61f9c34685e1d687d45c7980ed0 Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Fri, 21 Apr 2023 08:38:15 +0200 Subject: [PATCH] make onboot default for network devices Signed-off-by: Christian Goll --- internal/pkg/node/constructors.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/pkg/node/constructors.go b/internal/pkg/node/constructors.go index 0619e912..1b44e454 100644 --- a/internal/pkg/node/constructors.go +++ b/internal/pkg/node/constructors.go @@ -37,7 +37,8 @@ defaultnode: dummy: device: eth0 type: ethernet - netmask: 255.255.255.0` + netmask: 255.255.255.0 + onboot: true` func init() { conf := warewulfconf.New() @@ -61,7 +62,6 @@ func New() (NodeYaml, error) { return Parse(data) } - // Parse constructs a new nodeDb object from an input YAML // document. Passes any errors return from yaml.Unmarshal. Returns an // error if any parsed value is not of a valid type for the given @@ -100,7 +100,6 @@ func Parse(data []byte) (NodeYaml, error) { return ret, nil } - /* Get all the nodes of a configuration. This function also merges the nodes with the given profiles and set the default values