Commit Graph

552 Commits

Author SHA1 Message Date
jcsiadal
bbdfefabd4 Revert filecopy method to old style
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-02-26 22:56:50 +00: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
ac1718f1c0 added hosts.ww so wwctl configure hosts is removed 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
eeb062cf85 moved dhcpd configuration to host templating 2022-02-26 22:39:50 +00:00
Christian Goll
afc94ebd42 created exports with template 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
3a200a43f7 Added overlay build option to wwctl 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
jcsiadal
59dda4532b Minor fix to tftp
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-02-26 22:39:50 +00:00
jcsiadal
ab28e3a42f Rename FileCopySafe
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-02-26 22:39:50 +00:00
jcsiadal
bfc48f7c72 Clean up show and add safe copy
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-02-26 22:39:50 +00:00
jcsiadal
67b8018d69 TFTP update
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-02-26 22:39:50 +00:00
jcsiadal
e7aac8773c Move configuration work to library
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>

Update to support show correctly

Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-02-26 22:39:50 +00:00
Gregory M. Kurtzer
116d217f88 Merge pull request #300 from gmkurtzer/container_exit_clean
Container exit script runner
2022-02-24 17:11:23 -08:00
TerranWorks
b18e0bc0b2 added kernal search path for arch compatibility 2022-02-17 15:13:18 -06:00
Gregory M. Kurtzer
11ae6f1700 Merge pull request #312 from Prepultrue/main
Initialise Keys map for overlay templates
2022-02-17 00:04:32 -08:00
David McFarlane
4a4ca41db0 Initialise Keys map for overlay templates 2022-02-17 16:40:16 +11:00
MatthewHink
a01e8319d2 Allow asset tags in the profile.
Warn and ignore ip addresses and hardware addresses.
2022-02-16 11:41:44 -05:00
MatthewHink
a29e9ed6be Remove unique settings from profile set. Warn if set in the node DB.
IP address
MAC address
Asset Tag
2022-02-15 10:58:28 -05:00
Christian Goll
9f296079a6 fixed wrong WWCLIENTLOC synatx in in-files 2022-02-14 16:19:56 +01:00
Gregory Kurtzer
2260be9f8f Working implemnetation of #271 2022-02-13 04:22:12 +00:00
Gregory M. Kurtzer
486e0079c6 Merge pull request #271 from mslacken/run-exec-exit
execute './.ww4/runExit` on exit of container exec
2022-02-12 19:31:40 -08:00
Gregory M. Kurtzer
d38d023782 Merge pull request #297 from gmkurtzer/discoverable-fix
Discoverable and network fixes
2022-02-11 19:23:46 -08:00
Gregory Kurtzer
1a48bc6ee5 Fixed default network device logic 2022-02-12 03:21:31 +00:00
Gregory Kurtzer
e6a3810d20 Fixing oddball network configuration parameters 2022-02-12 03:08:33 +00:00
Gregory Kurtzer
b1b893861e Fix for faulty boolean logic (ref #292) 2022-02-12 01:53:18 +00:00
Gregory M. Kurtzer
531a273b82 Merge pull request #295 from gmkurtzer/set_defaults
Setting sane defaults for node and profile selection
2022-02-11 17:37:47 -08:00
Gregory Kurtzer
0cdc8d1492 Moved the static files out of the go internal source 2022-02-12 01:35:14 +00:00
Gregory M. Kurtzer
1eabba2ef7 Merge pull request #266 from mslacken/ipxe-install-fix
removed static embeded pxe files in wwctl
2022-02-11 17:32:16 -08:00
Gregory Kurtzer
30994fd60d Setting sane defaults for node and profile selection 2022-02-12 01:27:58 +00:00
Gregory M. Kurtzer
67ee3bf5f8 Revert "Move configuration code out of wwctl" 2022-02-11 16:20:05 -08:00
Gregory M. Kurtzer
5a7f99af18 Merge pull request #293 from jcsiadal/loops
Move configuration code out of wwctl
2022-02-11 16:03:08 -08:00
Gregory Kurtzer
86db0046b9 "Key" backwards compatibility for overlay templates 2022-02-11 20:17:02 +00:00
jcsiadal
c4938b55c7 Update to support show correctly
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-02-11 18:10:32 +00:00
jcsiadal
496674ab9e Move configuration work to library
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-02-11 17:42:26 +00:00
Gregory Kurtzer
49150c172e Reverse compatibility for keys to tags 2022-02-11 15:36:38 +00:00
Gregory Kurtzer
ffaf794a42 Changed "key" paramaters to tags and cleaned up interface 2022-02-11 05:52:46 +00:00
Gregory Kurtzer
7381efb0fc Fix the help output for set -N ... 2022-02-11 04:55:04 +00:00
jcsiadal
378dda2ca1 Rebase updates
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-02-10 19:54:09 +00:00
jcsiadal
c9c8a683a7 Updates specfile to match distro guidelines. Suppots modifying client directory path at build time.
- Support relocating client files at build time (required for LSB compliant nodes)
- OS varable added to perform some make choices
- Saving and exporting the Makefile vars now scripted using list of variables
- Updated specfile to match RH and SUSE requirements and guidelines
- Moved /usr/local/var to /var/local; dynamic files shall not use /usr.
- State files use %sharedstatedir for path (std for SLE and RHEL)
- Release value adjusted to meet different DEB and RPM reqs.

Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-02-10 19:47:50 +00:00
Gregory M. Kurtzer
b4b5366526 Merge pull request #290 from gmkurtzer/bool_types_fix
Change how booleans operate (and network config simplification)
2022-02-10 08:47:55 -08:00
Gregory Kurtzer
93ff88d544 Fix lint 2022-02-10 16:43:04 +00:00
Gregory Kurtzer
b165928699 Change how boolean node members behave (transform two and from strings) 2022-02-10 16:36:14 +00:00
Gregory Kurtzer
c5cbd3d6e3 Simplified default network device configuration 2022-02-10 16:35:46 +00:00
MatthewHink
ae149f3e36 Fix hardcoded path in test. Use the configuration setting. 2022-02-10 10:12:03 -05:00
Gregory Kurtzer
543609fdfc Remove spaces from asset tag 2022-02-09 20:54:07 +00:00