Christian Goll
a36cb23319
added shim/grub find to provision process
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 18:02:04 -07:00
Jonathon Anderson
6e93e8f3a8
Fix relative ipxe paths
...
IPXESOURCE is pointing to /usr/share/ipxe/ by default, so the `ipxe/`
directory should not be included in the compiled-in relative defaults.
Fixes a bug in #1010
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2023-12-21 20:21:49 -07:00
Jonathon Anderson
038329ebce
Remove ipxe binaries and configure for Rocky Linux
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2023-12-09 01:29:48 -07:00
Christian Goll
8cbeb25c8b
seperate the path for the iPXE binaries
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2023-12-08 22:38:43 -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
Christian Goll
6e5013a359
fix SIGSEV if build host has no network
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-06-13 11:30:15 +02:00
Jonathon Anderson
5923130676
Add tests for config
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 14:02:43 -06:00
Jonathon Anderson
4622153a82
Support subdirectories in ipxe paths
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 14:02:43 -06:00
Jonathon Anderson
e2e3a90623
Revert some caps changes
...
Use in templates means these were an accidental interface change.
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 14:02:43 -06:00
Jonathon Anderson
8321193645
Refactor and document config/datastructure
...
Also adjusted case for initialisms (e.g., DHCP, TFTP, NFS).
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 14:02:43 -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
a10fdb3808
Remove config.DataStore()
...
Comments in the code were already disparaging of config.DataStore(), but
implied that its presence made other code more readable. It was only
used in two places and, imo, how I've refactored it is more explicit and
clear than it was.
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
f78e6b73b1
Rename ControllerConf to BaseConfig
...
Also moved BaseConfig to a new source file, co-located with its
constructors and methods, and added doc comments.
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
jcsiadal
8e626e9a62
Add config option for shared state dir
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
Changes default share to /srv/warewulf
Update specfile
Some changes to match Golang standards
2022-01-11 05:52:58 +00:00
WestleyR
4edc16953e
Fix linting issues
2021-09-07 20:48:51 -07:00
Ian Kaneshiro
846b45524c
Tidy up
...
- Ran goimports to format code and imports
- Removed unused module from go.mod
- Added .editorconfig to keep formatting standard across contributors
2021-02-16 11:54:12 -08:00
Gregory Kurtzer
0095b55624
Updates around VNFS restructure and kernel restructure. More coming.
2020-12-05 16:43:30 -08:00
Gregory Kurtzer
019b405758
Removed the YAML config parsing from here as it is now in warewulfconf
2020-12-03 17:27:52 -08:00
Gregory Kurtzer
a4d2e3a0c8
This is a work in progress, some of which will be reverted like overlay handling.
2020-11-25 23:58:38 -08:00
Gregory Kurtzer
5cd1dc901e
Lots of updates with the node management CLI tools
2020-11-22 20:35:13 -08:00
Gregory Kurtzer
221e71b384
A bunch of changes including reworking the assets -> node API
2020-11-20 17:59:06 -08:00
Gregory Kurtzer
ed7dbdaf32
Fleshed out the framework of most of the wwctl overlay command group.
2020-11-17 21:50:27 -08:00
Gregory Kurtzer
108174d35c
Still working on CLI framework for wwctl overlay
2020-11-16 22:43:13 -08:00
Gregory Kurtzer
52eb51e38a
Validation and taint checking of configuration file inputs
2020-11-16 21:37:18 -08:00
Shannon V. Davidson
8fc657aa19
fixed typo - changed overlay to overlays in run-time overlay path
2020-11-13 10:21:19 -06:00
Gregory Kurtzer
9c1b28932e
Last bit of minor bugfixes and cleanups for a working demo
2020-11-11 23:04:57 -08:00
Gregory Kurtzer
fa2a7e26d3
Moving warewulfd code around and implementing new API for config.*()
2020-11-11 22:16:24 -08:00
Gregory Kurtzer
9644690dd5
Cleanups and removing the legacy wwclient program code
2020-11-11 15:10:48 -08:00
Gregory Kurtzer
f3ec8ee923
Lots of cleanups, added vnfs package and utilizing config package for constants
2020-11-09 17:24:35 -08:00
Gregory Kurtzer
d2ed5766cd
Added configuration pkg, iPXE templating, clean up, etc.
2020-11-04 18:45:36 -08:00
Gregory Kurtzer
3d1964f933
More updates including #WW... declarations in overlay configs
2020-11-03 23:42:47 -08:00