Jonathon Anderson
9a3e48fa37
Explicitly enforce the number or arguments accepted by some wwctl subcommands. #1717
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-24 21:06:07 -06:00
Jonathon Anderson
8d9c99f739
Hide internal wwctl completion and wwctl genconfig commands
...
Also remove the redundant `wwctl genconfig completions` command.
- Closes : #1716
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-10 14:22:22 -07:00
Jonathon Anderson
73f34d0099
Restore server network auto-detection
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-06 20:46:20 -07:00
Jonathon Anderson
2e1466fc7e
Fix handling of CIDR values in warewulf.conf
...
- Fixes : #1541
- Fixes : #1594
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-06 20:46:20 -07:00
Jonathon Anderson
736f9dae48
Use configured warewulf.conf path in wwctl upgrade
...
- Fixes : #1658
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-30 10:55:22 -07:00
Jonathon Anderson
45a690ca4e
Rename "container" to "image"
...
- Updated `wwctl upgrade` to handle updates
- Maintained `.Container` and `.ContainerName` in tstruct
- Added `ContainerName()` methods to node and profile objects
- Added `--container`, `-C` aliases to wwctl commands (`<node|profile> <add|set>`)
- Added `wwctl container` alias
- Added support for `container_exit.sh` if `image_exit.sh` is not found
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-19 05:54:19 -07:00
Jonathon Anderson
a80ba8ee01
Configure nodes.conf path dynamically from config
...
Removes the use of init() to initialize the variable.
- Closes : #1596
- See also: #1569
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-17 11:04:43 -07:00
Jonathon Anderson
6f4d33b19e
Move wwctl kernel list to wwctl container kernels
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-09 10:02:28 +01:00
Jonathon Anderson
981d11a012
Initial wwctl upgrade command
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:09:38 -07:00
Jonathon Anderson
a7325b6ffa
Remove WW_INTERNAL
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:08:54 -07:00
Christian Goll
ff84974506
added wwctl clean to remove cache/dead overlays
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-28 15:20:41 -06:00
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