Jonathon Anderson
ab52e389f6
Merge pull request #781 from anderbubble/config-refactor
...
Refactor package that handles warewulf.conf
2023-04-26 13:56:03 -06:00
Brian Clemens
74df996550
Merge pull request #794 from anderbubble/userdocs-excludes
...
Document excludes and container_exit.sh
2023-04-22 14:47:08 +09:00
Brian Clemens
dddc82d10f
Merge pull request #798 from anderbubble/userdocs-local-container
...
Document importing local container images
2023-04-22 13:33:46 +09:00
Brian Clemens
6fc507f546
Merge pull request #796 from anderbubble/userdocs-image-size
...
Add a userdocs section on container sizes and workarounds
2023-04-22 13:33:02 +09:00
Brian Clemens
a361ab3b83
Merge pull request #799 from anderbubble/userdocs-node-discoverable
...
Document node discovery and order in userdocs
2023-04-22 13:32:27 +09:00
Jonathon Anderson
f1c6cf73e7
Document node discovery and order in userdocs
...
Closes #487
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-21 16:56:07 -06:00
Jonathon Anderson
b0f3a8e4ae
Document importing local container images
...
Closes #492
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-21 15:42:30 -06:00
Jonathon Anderson
d0a0feff15
Add a section on container sizes and workarounds
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-21 14:29:39 -06:00
Christian Goll
a4f036ad67
Merge pull request #793 from anderbubble/secure-true
...
Additional documentation for warewulf.conf:warewulf.secure
2023-04-21 09:43:37 +02:00
Christian Goll
3af186c055
Merge pull request #792 from anderbubble/onboot
...
Configure ONBOOT with netdev.OnBoot
2023-04-21 08:43:56 +02:00
Christian Goll
4d591dbc9d
Merge pull request #787 from anderbubble/changelog-enforcer
...
Enable the changelog enforcer
2023-04-21 08:39:54 +02:00
Christian Goll
8b552fe5ca
make onboot default for network devices
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-04-21 08:38:15 +02:00
Jonathon Anderson
d9782688b1
Fix a hyperlink syntax error in userdocs
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-20 14:42:23 -06:00
Jonathon Anderson
1731636bc2
Document excludes and container_exit.sh
...
Closes #612
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-20 14:22:24 -06:00
Jonathon Anderson
951e10755a
Additional documentation for warewulf.conf:warewulf.secure
...
Closes #615
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-20 13:35:11 -06:00
Jonathon Anderson
6428534dc3
Configure ONBOOT with netdev.OnBoot
...
Closes #644
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-20 02:50:47 -06:00
Brian Clemens
28c8b335c1
Merge pull request #789 from anderbubble/userdocs-logos
...
Update Warewulf logos in userdocs
2023-04-20 16:55:07 +09:00
Jonathon Anderson
be9bd9d2bc
Update Warewulf logos in userdocs
...
Closes #788
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 20:43:34 -06:00
Jonathon Anderson
bd58ac456c
Restore .png files corrupted by #587
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 20:26:48 -06:00
Jonathon Anderson
5146403c4e
Enable the changelog enforcer
...
* https://github.com/marketplace/actions/changelog-enforcer
* https://dangoslen.medium.com/enforcing-a-changelog-with-github-actions-279119ed4182
Closes #278
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 20:10:42 -06:00
Jonathon Anderson
62018eedf0
Fix a failing unit test after a rebase
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 14:05:24 -06: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
82520c0de0
Fix linter errors in some tests
...
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
Jonathon Anderson
b6e6795dee
Removed "glob" from node pattern description
...
A glob is a pattern that supports * and ? wildcards. This is not
supported for node patterns. I'd call these "hostlist" patterns; but
easier to just leave it generic for now until and unless there is
documentation to refer to on the website about the pattern type.
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-16 20:58:39 -06:00
Jonathon Anderson
e693ca9cd4
Merge remote-tracking branch 'jason/issue/658' into development
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-16 18:43:59 -06:00
Christian Goll
12968f306a
Merge pull request #780 from anderbubble/fix-writing
...
Fix writing of nodes.conf
2023-04-18 07:14:58 +02:00
Jonathon Anderson
cc714008ef
Add doc comments for two methods
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-16 07:24:14 -06:00
Jonathon Anderson
2319906d97
Fix writing of nodes.conf
...
The caching functionality of nodes.conf, and the optional persistence
functionality that came with it, appears to have been preventing
actually writing the configuration to disk in all cases. This change
fixes the ability to write to nodes.conf.
Somewhat opinionatedly, this change removes the caching functionality of
nodes.conf. The tests have also been updated to use real files for i/o
rather than tying into the caching system, making them more accurately
test the ability of Warewulf to actually read and write its
configuration.
Fixes #779
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-14 10:53:31 -06:00
jason yang
d73a6f269c
fix the code
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2023-04-12 12:04:53 +00:00
jason yang
7500688f82
merge the latest development
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2023-04-12 10:29:35 +00:00
jason yang
0faada6aae
refactor the profile add
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2023-04-12 10:27:44 +00:00
Christian Goll
0f2fcb326f
Merge pull request #670 from mslacken/FixProfileAdd
...
correct behavior of profile add to yes flag
2023-04-12 08:58:10 +02:00
Christian Goll
75e75b57d3
Merge pull request #774 from JasonYangShadow/issue/773
...
container list test can fail in wrong time zone
2023-04-12 08:57:24 +02:00
jason yang
db048bfa73
update the main_test to ignore time zone
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2023-04-12 06:26:51 +00:00
Christian Goll
0ad69ca3ce
Merge pull request #677 from mslacken/RefactorFlags
...
Refator the CreateFlags command
2023-04-11 14:17:28 +02:00
Christian Goll
5f5724c8a9
Merge branch 'development' into RefactorFlags
2023-04-11 14:17:13 +02:00
Christian Goll
48c08f3fd7
Merge pull request #719 from hpcng/hashConf
...
more secure edit command
2023-04-11 11:44:01 +02:00
Christian Goll
1c6300b713
Merge pull request #746 from hpcng/dependabot/go_modules/development/github.com/fatih/color-1.15.0
...
Bump github.com/fatih/color from 1.13.0 to 1.15.0
2023-03-30 09:56:26 +02:00
dependabot[bot]
a09a850233
Bump github.com/fatih/color from 1.13.0 to 1.15.0
...
Bumps [github.com/fatih/color](https://github.com/fatih/color ) from 1.13.0 to 1.15.0.
- [Release notes](https://github.com/fatih/color/releases )
- [Commits](https://github.com/fatih/color/compare/v1.13.0...v1.15.0 )
---
updated-dependencies:
- dependency-name: github.com/fatih/color
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-30 07:52:49 +00:00
Christian Goll
ef4480b7b6
Merge pull request #759 from mslacken/development
...
cleanup fallout from update of grpc
2023-03-30 09:51:50 +02:00