Commit Graph

181 Commits

Author SHA1 Message Date
Jonathon Anderson
9500487ad3 Improve the detection of SELinux capable rootfs
initramfs uses tmpfs regardless of whether root=tmpfs in Warewulf. As
such, 90-selinux needs to be updated to detect the actual provenance of
/, rather than the configured setting.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-06-06 03:20:12 -04:00
Jonathon Anderson
53dae60e20 New, optional dracut.ipxe configuration
dracut.ipxe boots an initramfs detected in the container image. This
required a few small changes to warewulfd and the wwinit overlay to
accommodate the dracut initramfs configuring the network interface
before wwinit:

- Include .NetDevs in the ipxe configuration template, so that dracut
  can configure interfaces with the correct names.

- Configure NetworkManager to not keep the initramfs configuration, in
  stead applying the configuration found by wwinit.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-06-06 03:20:09 -04:00
Christian Goll
0990c3ecdb Merge pull request #1187 from mslacken/SetSSHKeys
allow the user to specify ssh key types
2024-05-06 11:12:06 +02:00
snehring
6e6344830d Reorder dnsmasq config template to put iPXE last.
Signed-off-by: snehring <snehring@iastate.edu>
2024-05-01 16:22:06 -05:00
Jonathon Anderson
a164498aa5 Documentation for SSH key type configuration
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-05-01 14:27:39 -06:00
Jonathon Anderson
7046c6dc8c Use the first configured ssh key type for authn
Previously, the authentication key was always generated using rsa. Now
it uses the first configured ssh key type.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-05-01 14:27:39 -06:00
Jonathon Anderson
ab881dbb37 Add Overlay variable to debug template
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-04-17 21:40:36 -06:00
Jonathon Anderson
7099b08db5 Replace slice in templates with sprig substr
sprig replaces slice with a function that only operates on sprig lists.
substr is required for use with strings.

- Fixes: #1139

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-03-17 14:51:18 -06:00
Dietmar Rieder
feb86ce11a Prevent Networkmanager from trying to optain IP address via DHCP
on unused/unmanaged network interfaces. Only act on interfaces.
configured via wwctl otherwise system NetworkManager-wait-online.service.
runs into a time out.
2024-03-12 09:47:34 +01:00
John Hanks
12496d89c7 Fixing result of over aggressive sed expression. 2024-03-11 09:36:56 +01:00
John Hanks
8877cebf87 Swapping replace from sprig for our tr in overlays. 2024-03-11 09:36:56 +01:00
John Hanks
cbf9178f10 Provide sprig functions in overlay templates 2024-03-11 09:36:52 +01:00
Dietmar Rieder
f17ba7c62b Make mounting into sub-directoies work fixes #1073 2024-02-19 14:28:49 +01: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
b68a0faf6d Remove redundant wwclient startup script
80-wwclient was previously supplanted by 80-wwclient.ww, but the static
version was retained. Meanwhile, the static version can only detect
systemd when it is running, which it isn't during wwinit. This led to
wwclient starting during wwinit and then being killed by systemd.

Closes #1066

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-02-17 02:52:11 -07:00
Xu Yang
085b413d63 Add dns configuration to network overlays
Closes #922

Signed-off-by: Xu Yang <xyang@ciq.com>
2024-02-16 17:19:47 -07:00
Christian Goll
4a2969f298 Merge pull request #1071 from riederd/main
Enable creating a bonding network interface
2024-02-07 09:00:40 +01:00
Jonathon Anderson
57a5e7d5ba Merge pull request #1070 from JasonYangShadow/issue/821
refactor the shebang usage in scripts of init.d folder
2024-02-06 22:54:35 -07:00
Christian Goll
65198bb995 enable grub for dnsmasq
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-02-06 22:51:50 -07:00
Christian Goll
a544744691 move dnsmasq template into etc
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-02-06 22:39:03 -07:00
Xu Yang
9d7365e34d uniform the shebang usage
Signed-off-by: Xu Yang <xyang@ciq.com>
2024-02-06 20:35:23 -07:00
Dietmar Rieder
3e73a79951 Enable creating a bonding network interface 2024-02-06 15:17:39 +01:00
Andreas Henkel
6221e780e6 Update ww4-disks.target.ww
Fixed Prequisite to Requisite
2024-01-29 19:42:34 +01: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
Jonathon Anderson
5d6ef1882d Remove whitespace damage
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-01-21 00:18:38 -07:00
Jonathon Anderson
9569c46210 Restore functionality of the static dhcp template
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-01-17 18:02:04 -07:00
Christian Goll
fc1174c114 better systemd detection
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-01-17 18:02: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
Christian Goll
4379c4c18d use grub/shim from host system
Also the boot method is now configured globaly as this is
the only way to make sure that unkonwn nodes get the right
stuff

Signed-off-by: Christian Goll <cgoll@suse.com>
2024-01-17 18:02:04 -07:00
Christian Goll
938eff2cfa linking the template and for dhpcd.conf
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-01-17 18:02:04 -07:00
Christian Goll
60dc8f6251 enable grub boot for all nodes
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-01-17 18:02:04 -07:00
Christian Goll
2fe98e5f55 default profile needs to have a container
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-01-17 18:02:04 -07:00
Christian Goll
a36cb23319 added shim/grub find to provision process
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-01-17 18:02:04 -07:00
Jonathon Anderson
a20f4bbcea Minor formatting fixes for persistent-net template
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-12-21 23:11:34 -07:00
Jonathon Anderson
b49e770118 Specify persistent-net comment block per-file
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-12-21 23:10:47 -07:00
Jonathon Anderson
07dbd5b2a7 Only set persistent-net name if device is specified
persistent-net should not use the warewulf interface name as a default device
name because the network configuration scripts don't.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-12-21 23:09:20 -07:00
Brian Phan
59830dc549 Update file name of rendered file
Signed-off-by: Brian Phan <bphan@ciq.com>
2023-12-21 21:10:40 -07:00
Brian Phan
9fdcdceb04 Update 10-persistent-net.link.ww
Update Warewulf template to generate a file per network device.

Signed-off-by: Brian Phan <bphan@ciq.com>
2023-12-21 21:10:40 -07:00
Christian Goll
183f8e479c Propagate paths to overlays and use for wwclient
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-12-08 21:09:47 -07:00
Christian Goll
354fc168ef Remove trailing space from filename
ww4-disks.target.ww was committed with a trailing space in its filename
which is both incorrect and breaks rendering of the template.

Signed-off-by: Christian Goll <cgoll@suse.com>
2023-11-25 01:15:22 -07:00
Jonathon Anderson
4cf230cadd Merge pull request #946 from mslacken/MTUScript
set MTU in different network confs
2023-10-14 01:42:54 -06:00
Christian Goll
f4ae168f5a set MTU in different network confs
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-10-14 01:00:24 -06:00
Christian Goll
e2603cf8e8 only write ipmi of IpmiWrite is true
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-10-14 00:46:50 -06:00
Christian Goll
d96c55022d Use systemd mount units for mounting ignition
Signed-off-by: Christian Goll <cgoll@suse.de>
2023-08-21 16:19:13 -06:00
Christian Goll
cfbb38d570 Use ignition as a systemd service
simple init.d ignition fails as systemd is needed to set up drivers,
etc.

Signed-off-by: Christian Goll <cgoll@suse.de>
2023-08-21 16:19:13 -06:00
Christian Goll
2cf928d6b7 reboot also without systemd
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-06-27 14:28:16 +02: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
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
Jonathon Anderson
4622153a82 Support subdirectories in ipxe paths
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2023-04-19 14:02:43 -06:00
Christian Goll
a935d5fe77 Merge pull request #727 from hpcng/dnsmasq
added experimental dnsmasq support
2023-03-22 12:06:10 +01:00