Christian Goll
ff10bc95bb
const string for Version, Release, Confversion
...
The Version (e,g, 4.4 ), Release (git hash) and Confversion (e.g. 44)
must be compiled into the code so that they can't be changed during run
time and ensure this with the compiler
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-02-17 10:22:44 -07:00
Jonathon Anderson
a1832ad8c1
Complete transfer of Warewulf from HPCng
...
Warewulf is now being maintained in its own GitHub organization at
github.com/warewulf
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-01-26 21:35:04 -07:00
Jonathon Anderson
42842aeee1
Format entire source code using make fmt
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2023-10-23 17:56:20 -06:00
Jonathon Anderson
cfdf179e16
Remove SetDynamicDefaults from Parse
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 14:02:43 -06:00
Jonathon Anderson
387cd0f7be
Refactor BaseConf Read and Parse
...
Also refactor New and Get to return pointers to match BaseConf methods.
This makes calling the methods immediately on the return values of the
constructors easier.
Also move config.ConfigFile to buildconfig.go.in. ConfigFile is still
used by wwctl as a default config file to reference; but it is removed
from other locations now.
Removed Persist, as nothing called it.
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 14:02:43 -06:00
Jonathon Anderson
af6c91ade3
Rename BaseConf.Initialized to BaseConf.InitializedFromFile
...
Initialized could be interpreted to mean dynamically initialized as
well. This new name removes that ambiguity.
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 14:02:43 -06:00
Jonathon Anderson
70292276e2
Rename BaseConf.New to BaseConf.Get
...
Since BaseConf.New could return a cached BaseConf, rather than always
constructing a new struct, I've renamed it to Get to more accurately
reflect its use. A new New() method is called by Get and always
initializes a new struct.
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 14:02:43 -06:00
Jonathon Anderson
c461e65a98
Rename pkg/warewulfconf to pkg/config
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 14:02:43 -06:00
Christian Goll
3367b67b9f
added a test for wwctl node add
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-07 09:05:29 +01:00
Christian Goll
a422a1617c
added Changelog
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-06 15:53:32 +01:00
Christian Goll
b55473e1e4
added new build in vars to rest of binaries
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-03 16:21:44 +01:00
Christian Goll
78978ad233
added warewulfconf as command line parameter
...
the environment variable WAREWULFCONF is also recognized
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-03 11:18:49 +01:00
Christian Goll
bb894df100
added make_defaults to wwctl genconfig defaults
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-02 19:44:48 +01:00
Christian Goll
94866656a4
generate man pages via sub command
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-02 11:10:20 +01:00
Christian Goll
ab2139a1fd
added wwctl genconf used to generate completions
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-01 16:42:58 +01:00
Christian Goll
55f61a7c18
pass log level to container exec
2023-01-31 16:03:57 +01:00
Gregory Kurtzer
b4ef712166
Add parallel ssh capability
2022-06-07 20:28:25 -07: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
32e0de5a0f
added version information
2021-11-29 10:56:48 +01:00
jcsiadal
0b93d6c277
Update help
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
2021-11-08 11:36:21 -08:00
Gregory Kurtzer
9581281cb4
Fixed redundant usage errors
2021-09-13 22:36:45 -07:00
WestleyR
705b321f80
Better error handling for some of wwctl commands
...
Better error handling, also prints a stack trace for `wwctl` if
`--debug` flag is used.
2021-09-10 21:18:45 -07:00
Gregory Kurtzer
a2426d1fd3
if we return from Cobra command with error, don't show help.
2021-09-08 11:39:02 -07:00
WestleyR
4edc16953e
Fix linting issues
2021-09-07 20:48:51 -07:00
Gregory Kurtzer
64fa482c64
Moved ready command to node ready
2021-08-22 08:47:51 -07:00
Gregory Kurtzer
a82e1b0ea5
Fixed formatting across entire project
2021-08-21 08:04:47 -07:00
Christian Goll
8d5162f88a
automatic man page generation
2021-08-10 11:15:53 +02:00
Christian Goll
b27951b59f
added binary to create bash completion
...
also do not bail out, when configs can't be read, still the
2021-08-10 11:15:33 +02:00
Gregory Kurtzer
6cdf15abb5
Fix for issue #36 . Debug option always takes precedence over verbose.
2021-03-06 17:45:14 -08:00
Gregory Kurtzer
72b1d8c9d8
UI Updates with a few minor fixups scattered here and there
2021-01-14 20:23:42 -08:00
Gregory Kurtzer
62a1abaab3
Cleanups and minor fixups
2020-12-13 22:45:08 -08:00
Gregory Kurtzer
a5e79ae560
Moved wwctl service to wwctl system
2020-12-10 20:57:02 -08:00
Gregory Kurtzer
8c11c2b304
Renamed vnfs to container, finished VNFS and kernel refactoring
2020-12-06 00:47:00 -08:00
Gregory Kurtzer
6cbaa29fbd
Fixes for new API
2020-12-03 17:28:28 -08:00
Gregory Kurtzer
84bf9fbb43
profile and node commands and DB all working as expected now
2020-12-03 13:49:49 -08:00
Gregory Kurtzer
eaf6bb1196
This is a work in progress API shift as the data structure has changed and I'm cleaning the interface.
2020-12-03 07:34:26 -08:00
Gregory Kurtzer
43ad7e570c
API updates and fixes to CLI
2020-12-01 23:34:24 -08:00
Gregory Kurtzer
d5f47bec14
Drop the 's' in the services command.
2020-12-01 14:38:21 -08:00
Gregory Kurtzer
4d752a67db
Added controllers, services, and lots of various optimizations and fixes
2020-11-30 23:07:42 -08:00
Gregory Kurtzer
41dd2e3a59
Added basic profile handling CLI
2020-11-27 16:37:56 -08:00
Gregory Kurtzer
3ab02c3055
Add node and groups back into wwctl command
2020-11-26 20:37:11 -08:00
Gregory Kurtzer
ef64ff280c
Disabling the commands that still need updating for nodeDB updates
2020-11-26 19:19:36 -08:00
Gregory Kurtzer
1d1a02b305
Building set commands for nodes and groups and templating out CLI further
2020-11-21 01:48:38 -08:00
Gregory Kurtzer
bfb7908a8c
Work in progress on setting variables
2020-11-20 23:01:05 -08:00
Gregory Kurtzer
85603ee947
Lots of changes including: wwctl overlay list and framework for other commands
2020-11-16 21:37:55 -08:00
Gregory Kurtzer
c39257a7ff
Added some Cobra framework for new command groups as I'm thinking through the interface.
2020-11-13 21:29:22 -08:00
Gregory Kurtzer
189618a111
Major refactor for Cobra and new pkg/app structure for wwctl
2020-11-10 21:28:39 -08:00
Gregory Kurtzer
0c369270ef
Beginning to break out wwbuild into wwctl with proper Go structure and Cobra
2020-11-09 20:42:12 -08:00