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