Commit Graph

51 Commits

Author SHA1 Message Date
Jonathon Anderson
f641b1d3f9 Fix ipxe-bootimgs in warewulf.spec.in for el7
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-03-09 22:18:38 -07:00
Jonathon Anderson
cc9f316af1 Update changelog in warewulf.spec
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-03-09 17:54:31 -07:00
Jonathon Anderson
6cc13455f6 Move overlays to rootfs and and set ownership
Move all overlay contents to a rootfs subdirectory, which was already
supported, and set ownership to root:root.

Closes #1078

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-02-17 10:39:06 -07:00
Jonathon Anderson
a1832ad8c1 Complete transfer of Warewulf from HPCng
Warewulf is now being maintained in its own GitHub organization at
github.com/warewulf

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-01-26 21:35:04 -07:00
Christian Goll
725176cfed cleanup code after review
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-01-17 18:02:04 -07:00
Jonathon Anderson
038329ebce Remove ipxe binaries and configure for Rocky Linux
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-12-09 01:29:48 -07:00
Christian Goll
7e1cb014c2 use distribution ipxe binaries
exclude .github and .vscode for make dist
honor git tag when generating spec file

Signed-off-by: Christian Goll <cgoll@suse.com>
2023-12-08 22:38:57 -07:00
griznog
8098d1881e Minor fixes to enable building rpms for Fedora 2023-11-23 09:10:12 -06:00
Jonathon Anderson
db9a81da73 Fix use of OFFLINE_BUILD in warewulf.spec
warewulf.spec appears to expect that an offline build would be requested
with `--with offline`; but conditional builds are not supported by mock.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-16 10:17:22 +02:00
Jonathon Anderson
1047032bae Updated Makefile to account for vendor/ in dist
The previous PR #890 introduced a `Defaults.mk` target for defining
default variables for future calls to `make`. This functionality was
already present in a different form, but this new "real" target had an
unintended side-effect of causing the target to be called automatically
at reference, even the optional reference `-include Defaults.mk`. This
is undesirable as it causes the generation of defaults even during a
`make clean`.

This commit resolves these issues and further refactors the Makefile,
building on the work in #890, but with additional understanding:

* Convert the `Defaults.mk` target to the "phony" `defaults` target,
  preventing automatic generation
* Refactor and split `clean` targets
* Update `cleanvendor` to reflect `OFFLINE_BUILD`, similar to the
  `vendor` target
* Move "tools" targets into `Tools.mk`
* Add `ARCH` to `Variables.mk` for architecture-specific actions

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-31 16:35:21 -06:00
Jonathon Anderson
ab537a8136 Update ciq.com URLs
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2023-08-23 14:51:11 -06:00
Jonathon Anderson
c1d56885ac Refactor Makefile config / Defaults.mk
Makefile has included a Defaults.mk file to store variable configuration
from one run for implicit inclusion in future runs, but the creation of
this file has been automatic and opaque, and the state of it managed by
a series of PHONY targets (e.g., config, genconfig, rm_config). This
commit refactors config to name its files explicitly (so they can be
more properly monitored by make) and makes the generation of Defaults.mk
explicit so that its behavior is more obvious.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
97248797f5 Restore %config(noreplace) to nodes.conf
The previous PR #888 erroneously removed the %config(noreplace) macro from the
nodes.conf file. This PR restores it.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-09 11:50:10 -06:00
Jonathon Anderson
92f94a6630 Fix duplicate entries in rpm %files
The inclusion of %{_sysconfdir}/warewulf/* and
%{_sysconfdir}/warewulf/nodes.conf caused nodes.conf to be listed twice,
generating a warning.

The inclusion of %{srvdir}/warewulf, which is redundant with
%{_sharedstatedir}/warewulf, caused all files in
%{_sharedstatedir}/warewulf/overlays to be listed twice, generating a
warning.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-08 09:59:40 -06:00
Jonathon Anderson
8c95a57089 Fixes to build process
* Fixed a misspelling of genconfig in Makefile
* Updated completions path in warewulf.spec.in

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2023-03-22 15:30:33 -06:00
jcsiadal
f25d2ec8d5 Update spec and Makefile
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-10-17 21:58:03 +00: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
e2b87ac63d Capture wwapi binaries in rpm spec
Naive implementation; but without some declaration rpmbuild fails.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-08-24 06:21:46 -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
d03619935e fixed up spec file 2022-04-26 15:03:48 +02: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
e99c48577c Update build variables
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-03-09 06:21:32 +00:00
Gregory Kurtzer
1c088fadda Fixed rpmbuild 2022-03-05 08:29:49 -08:00
Gregory Kurtzer
8f9719a1e3 Fixing RPM build error caused by #301 (ref #305) 2022-03-05 08:22:30 -08:00
Gregory Kurtzer
1b5d6a8245 Fixed missing tftp files (ref #299) 2022-02-13 04:29:05 +00: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
f04527f45a Full URL to pristine source 2022-01-19 06:05:46 +00:00
Gregory Kurtzer
ae0455eba1 Allow configuration generation for builds 2022-01-16 01:20:34 +00:00
Gregory Kurtzer
8da7dd415a Extend and optimize relocatable build config infrastructure 2022-01-15 04:00:18 +00:00
jcsiadal
3f68bc86db Minor fixes
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-01-12 03:10:50 +00:00
jcsiadal
05e31203b3 Updated spec with changes
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-01-11 05:56:32 +00:00
jcsiadal
35755002ec Fixes needed for successful validation
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-01-11 05:55:20 +00: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
Michael L. Young
df1dd94655 Resolve merge conflict due to newer spec file. 2021-11-08 08:41:31 -05:00
jcsiadal
9b2f47ed95 Add dist macro back
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2021-11-02 08:36:20 -07:00
jcsiadal
f7396ae5be Updates to build an RPM
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2021-11-01 11:32:59 -07:00
Michael L. Young
17c71993d3 Add GitHub action to build new release assets and upload them 2021-10-26 22:25:50 -04:00
Michael L. Young
b0ede5d03e RPM Spec File Improvements
- Fix package reference for EL7
- Update spec file to use systemd macros
- Use macros to refer to file paths
- Update syntax
2021-10-01 01:26:53 -04:00
Gregory Kurtzer
2d1bd17d93 Add dependencies to RPM SPEC 2021-08-22 07:28:49 -07:00
Gregory Kurtzer
fb7d81d6d1 Include unpackaged files in the RPM SPEC 2021-08-21 08:23:04 -07:00
Brian Clemens
9b5ff49718 Add firewalld service file to Makefile / RPM spec 2021-04-22 20:35:42 +09:00
Gregory Kurtzer
e149afd580 Disabling the warewulfd automatic start as part of RPM (anaconda install!?) 2021-03-06 18:03:49 -08:00
Gregory Kurtzer
8d24496e97 Fixing some packaging issues, make should start services. 2021-03-06 18:02:25 -08:00
Brian Clemens
da192d95b6 Fix systemd unit failing because of missing warewulf group 2021-03-04 19:03:45 +09:00
Brian Clemens
766ef32914 Fix build on el7 2021-02-03 22:29:23 +09:00
Niko Kivel
70735c144f dhcpPersist variable, update wwctl services to wwctl configure in default confs
* fixed wrong variable for kernel arguments
* fixed wrong variable for persistence
* fixed recreate command hint
2021-01-27 23:36:59 +09:00
Brian Clemens
3370ee7142 Include systemd service in RPM spec 2021-01-27 12:16:30 +09:00
Brian Clemens
4712c03a1a Tag 4.0.0 2021-01-26 22:53:18 +09:00
Gregory Kurtzer
b903eac31f Minor fixup for RPM build 2021-01-14 21:19:11 -08:00