Commit Graph

141 Commits

Author SHA1 Message Date
Jonathon Anderson
37daa19808 Merge pull request #668 from mslacken/FixConfigPerm
fix permission of config.ww
2023-02-02 18:00:58 -07:00
Jonathon Anderson
e8e9c4f3bd Merge branch 'development' into lint-update 2023-02-02 14:38:33 -07:00
Christian Goll
e1b8988a4e fix permission of config.ww 2023-02-01 09:25:13 +01:00
Christian Goll
afcdb21ed7 Tag 4.4.0 release 2023-01-18 21:33:04 +01:00
Christian Goll
3baf4f57af update to 0.4..4rc3
Signed-off-by: Christian Goll <cgoll@suse.de>
2022-12-22 15:13:19 +01:00
Christian Goll
93c666031e Merge pull request #596 from anderbubble/ignore-wwapi-conf
Treat wwapi config files as built versions
2022-12-15 14:19:30 +01:00
Christian Goll
73578d38e9 Merge pull request #592 from anderbubble/more-wwconfigdir
Use WWCONFIGDIR for all relevant install paths
2022-12-15 12:09:02 +01:00
Christian Goll
c7a50447cc Merge pull request #591 from mslacken/fixNM
NetworkManager config needs to be 600
2022-12-15 12:04:55 +01:00
Jonathon Anderson
4b8141f7c7 Additions to and install staticfiles README
Building off the work in #581, add additional detail to the staticfiles
README, and install an iPXE README alongside the iPXE files in their
final location.

Closes #189

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-12-14 12:27:56 -07:00
Jonathon Anderson
3ad4b42896 Treat wwapi config files as built versions
The wwapi*.conf files are build from .in variants, so they should not be
tracked in the tree. Adding them to gitignore prevents them from being
added back in, and adding them to Makefile:clean cleans them up.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-12-14 00:23:50 -07:00
Jonathon Anderson
48fe714e8e Use WWCONFIGDIR for all relevant install paths
Makefile was checking WWCONFIGDIR in some places. In others it was
duplicating the explicit paths that make up WWCONFIGDIR. Here, update
all such references to always use the WWCONFIGDIR macro.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-12-13 13:51:48 -07:00
Christian Goll
64cb589fe6 NetworkManager config needs to be 600 2022-12-13 10:34:38 +01:00
Christian Goll
c67699ae30 Update tag to rc2 2022-12-09 17:53:33 +01:00
Christian Goll
eec7c27ea5 updated tag in Makefile 2022-11-09 21:04:33 +01:00
jcsiadal
f25d2ec8d5 Update spec and Makefile
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-10-17 21:58:03 +00:00
mslacken
ab0ee87629 updated linter and fixed deprecated stuff 2022-10-14 17:40:16 +02:00
Christian Goll
efd761f7c3 Read the defaults for anode from defaults.conf 2022-09-15 11:14:26 +02:00
Christian Goll
edf42d61aa Merge pull request #495 from mslacken/reflections-cmdline
Use reflection for node and profile manipulation
2022-09-12 16:36:39 +02:00
Christian Goll
cb0a7b402e Merge pull request #511 from anderbubble/issues/510
new man pages for warewulf.conf and nodes.conf
2022-08-31 11:51:05 +02:00
Jonathon Anderson
1bfce7d1df Small dist cleanup
- Add .dist to gitignore
- Purge emacs temporary files from dist

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-08-24 06:18:32 -06:00
Jonathon Anderson
247c61295c Install new config file man pages
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-08-24 06:15:36 -06:00
Christian Goll
e23f794166 simplified node list command 2022-07-19 17:21:27 +02:00
Christian Goll
c8d70e23ad rebased on new API 2022-07-11 16:34:08 +02:00
MatthewHink
d8cd6049ac Initial cut of wwapi.
We need an API for Warewulf in order to automate around it. The initial version of the API will look a lot like wwctl. wwctl will call the API so that we do not need to maintain separate code paths. In this preview wwctl calls the API via direct function call, but we can change that to a gprc or REST call to a Warewulf server in the future.

This commit contains:
wwapid WareWulf API Daemon. A grpc server with mTLS auth.
wwapic WareWulf API Client. A grpc client with mTLS auth. It's just a sample that reads the version from the server.
wwapird WareWulf API Rest Daemon. A http REST reverse proxy to wwapid.
There are also sample insecure and secure curls to test with.

Implemented Functionality:
wwctl node add
wwctl node delete
wwctl node list
wwctl node set
wwctl node status
wwctl container build
wwctl container delete
wwctl container import
wwctl container list
wwctl container show

Some notes on the files:

    Logic that was in wwctl has moved to warewulf/internal/pkg/api. wwctl just calls the API. wwctl functionality is unchanged.
    Everything under the /google directory is copied google proto code to stand up wwapird. It's a bit strange to copy in the code, but that is currently how it's done.
    Everything in warewulf/internal/pkg/api/routes/wwapiv1 is generated code.

There are some loose ends here, such as no service installers. I just ran off the command line for development.
The Makefile could use improvement. I'm building by make clean setup proto all build wwapid wwapic wwapird ; echo $?
I copied the configs from warewulf/etc to /usr/local/etc/warewulf manually.
2022-06-24 08:39:30 -07:00
Gregory Kurtzer
235c23c516 Bump makefile to version 4.3.0 2022-06-15 14:15:07 -07:00
Christian Goll
53735f7cad Upodated Makefile to rc6 2022-06-10 08:45:26 +02:00
Gregory Kurtzer
27ea7f2022 Update to new PXE which should support imgextract 2022-05-26 19:55:00 -07:00
Gregory Kurtzer
e1be0dc205 Bump version 2022-05-25 21:58:16 -07:00
Gregory M. Kurtzer
5ec2e77394 Merge pull request #423 from kcdodd/refac/provision
Refactor of server, logging, building of images, template updates
2022-05-25 14:49:50 -07:00
Christian Goll
e36477c59b updated Makefile and CHANGELOG to rc3 2022-05-18 10:31:12 +02: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
Gregory M. Kurtzer
9cefa32198 Merge pull request #415 from gmkurtzer/minor_fixups_for_4.3.0
Minor fix ups for 4.3.0
2022-05-03 22:24:44 -07:00
Gregory Kurtzer
97a21d60c8 Fix default location for the wwprovisiondir to not be localstate 2022-05-03 21:52:41 -07:00
Christian Goll
2f836aaf87 uisng short hash for version var 2022-04-26 11:30:22 +02:00
Christian Goll
c29848171e Makefile 4.3.0rc2 2022-04-14 14:58:08 +02:00
Christian Goll
4641b947db added update_configuration 2022-04-12 18:03:05 +02:00
Christian Goll
78a7ef34a5 Makefile update for test coverage 2022-04-09 13:44:31 +02:00
Christian Goll
6c0fd068cc updated Makefile for v4.3.0-rc1 2022-04-07 17:22:38 +02:00
Christian Goll
e0681148e9 compiling config_defaults, unmarshall all values 2022-04-07 12:43:16 +02:00
Christian Goll
60490eed9f Cleanup TOOLS_DIR and updated linter version 2022-04-07 11:32:08 +02:00
Christian Goll
95d1b23921 use secure overlay dir
If there is a user writeable file in the host overlay, a user can
create arbitrary files on the host root file system. Although these
files will belong to this user, this might allow users to modify
any files.
So this patch restricts the access to the host overlay to root and
produces a warning if this was changed.
2022-04-07 11:05:00 +02:00
Yoshiaki SENDA
bfbc357cf4 Create $(DESTDIR)$(WWDATADIR)/ipxe directory
`$(DESTDIR)$(WWDATADIR)/ipxe` was file.
This cause a problem when copying *.efi files to `$(DESTDIR)$(WWDATADIR)/ipxe`.
This commit makes `$(DESTDIR)$(WWDATADIR)/ipxe` to be directory from file.
2022-03-25 14:56:35 +09:00
jcsiadal
8827937a9d Update for LSB compliance
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-03-09 07:32:02 +00:00
jcsiadal
3ad6c49a3e Update standard paths
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-03-09 06:26:40 +00:00
jcsiadal
e99c48577c Update build variables
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-03-09 06:21:32 +00:00
Gregory Kurtzer
f760ded5cd Clean warewulf.spec 2022-03-05 08:25:33 -08:00
Christian Goll
f0075fb94c remved hosts.tmpl as not needed any more 2022-02-26 22:39:50 +00:00
Christian Goll
eeb062cf85 moved dhcpd configuration to host templating 2022-02-26 22:39:50 +00:00
jcsiadal
67b8018d69 TFTP update
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-02-26 22:39:50 +00:00
Gregory Kurtzer
8abe1c48d1 rpmbuild fix from tru (ref #298) 2022-02-13 04:33:30 +00:00