Commit Graph

16 Commits

Author SHA1 Message Date
Jonathon Anderson
22910958b5 Replace all instances of wwlog.Printf
wwlog provides named loggers for each level, which requires
less code and is clearer than wwlog.Printf. The code has
included a mix of both, but this commit consolidates existing
code on the per-level functions.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-11 08:00:23 -06: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
jcsiadal
8827937a9d Update for LSB compliance
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-03-09 07:32:02 +00:00
Christian Goll
9f296079a6 fixed wrong WWCLIENTLOC synatx in in-files 2022-02-14 16:19:56 +01:00
Gregory M. Kurtzer
67ee3bf5f8 Revert "Move configuration code out of wwctl" 2022-02-11 16:20:05 -08:00
jcsiadal
c9c8a683a7 Updates specfile to match distro guidelines. Suppots modifying client directory path at build time.
- Support relocating client files at build time (required for LSB compliant nodes)
- OS varable added to perform some make choices
- Saving and exporting the Makefile vars now scripted using list of variables
- Updated specfile to match RH and SUSE requirements and guidelines
- Moved /usr/local/var to /var/local; dynamic files shall not use /usr.
- State files use %sharedstatedir for path (std for SLE and RHEL)
- Release value adjusted to meet different DEB and RPM reqs.

Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-02-10 19:47:50 +00:00
Gregory Kurtzer
543609fdfc Remove spaces from asset tag 2022-02-09 20:54:07 +00:00
Christian Goll
7b2d34f317 make location of buildconf 2022-02-09 10:18:18 +01:00
Christian Goll
6d1b3c66c5 listen mutliple times on SIGHUP 2022-01-26 11:33:28 +01:00
Christian Goll
404490b756 Add sd_notify to systemd after first sync 2022-01-26 11:31:24 +01:00
Niko Kivel
5abb1fc4c7 stale pidfile handling 2022-01-26 11:30:29 +01:00
Christian Goll
05f9c4d3af fix linter warning 2022-01-26 11:21:17 +01:00
Christian Goll
d4f180f4b4 wwclient cleanup 2022-01-26 11:21:16 +01:00
Christian Goll
6a5809e7c4 slightly improved error handling for wwclient 2022-01-26 11:15:52 +01:00
Christian Goll
93c337a469 added pidfile option for wwclient 2022-01-26 11:15:48 +01:00
Christian Goll
48fefd31ae renanmed wwclient.go for cobra integration 2022-01-26 11:02:56 +01:00