Commit Graph

1791 Commits

Author SHA1 Message Date
Jonathon Anderson
82cdd13987 Documentation and tests for hostlist syntax
Added this to a new top-level page for wwctl

Closes #611

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2023-06-05 05:06:59 -06:00
Christian Goll
866348bc93 Merge pull request #834 from JasonYangShadow/issue/828
replacing using different string spliter
2023-05-25 08:16:38 +02:00
jason yang
40583b4713 fix kernelargs are not printing properly in node list output
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
2023-05-25 01:21:49 +00:00
Jonathon Anderson
712899c4c2 Merge pull request #768 from JasonYangShadow/issue/758
wwlog outputs to stderr rather than stdout
2023-05-16 01:35:33 -06:00
Jonathon Anderson
4eb13147d2 Merge pull request #777 from JasonYangShadow/issue/608
wwctl overlay import: transparently create parent directories
2023-05-16 01:15:42 -06:00
Jonathon Anderson
3bfd22f65a Merge branch 'development' into issue/608 2023-05-16 01:11:32 -06:00
Jonathon Anderson
6f570e2823 Merge pull request #810 from JasonYangShadow/issue/691
fix wwctl node edit inconsistent state with warewulfd
2023-05-16 00:57:06 -06:00
jason yang
911cb4a3b9 squash commits
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
2023-05-15 10:34:36 +00:00
jason yang
869d3d7c76 squash commits
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
2023-05-15 10:31:07 +00:00
jason yang
956e1b3569 squah commits
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
2023-05-15 10:27:52 +00:00
Christian Goll
5ef7cdbbf2 Merge pull request #816 from JasonYangShadow/hotfix/patch_node_list_test
add sort support for returned entry slice
2023-05-12 08:15:51 +02:00
jason yang
f82e686feb add changelog
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
2023-05-12 02:51:22 +00:00
jason yang
15d4ccb34d add sort support for returned slice
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
2023-05-12 02:47:53 +00:00
Christian Goll
6c2a7b01b6 Merge pull request #770 from JasonYangShadow/issue/739
node/profile list syntax doesn't support comma-separated values
2023-05-11 16:09:30 +02:00
jason yang
b5b62206c1 add one more case
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
2023-05-09 06:12:31 +00:00
jason yang
f24c4765ed add changelog
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
2023-05-09 05:30:35 +00:00
jason yang
59390b4dda node/profile list syntax doesn't support comma-separated values
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
2023-05-09 05:30:35 +00:00
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