Jarrod Johnson
6938bba2d3
Have confignet pause until connectivity restored
...
If we are reconfiguring network for a diskless node, wait for
things to settle back in before continuing.
2025-09-26 13:42:29 -04:00
Jarrod Johnson
39eb32df38
Test connection on net cfg apply
...
When network configuration is applied, wait until we
can reach the deployment server again before exiting.
This should make us more robust against various potential delays after
changing the nature of network interfaces.
2025-09-25 15:18:18 -04:00
Jarrod Johnson
3f9a13ed6f
Ensure certfile is blanked before writing to it
2025-09-18 15:14:39 -04:00
Jarrod Johnson
c9ca199b16
Fix preference of netplan
...
If netplan and nmcli both exist, the intent was to prefer netplan.
However, there was a mistake that caused nmcli to be the most preferred.
2025-09-09 11:17:26 -04:00
Jarrod Johnson
63bbe53448
Address numerous issues with 'installtodisk' for el8
...
Add missing pre.d directory to let user know they can use such scripts
Preserve console directievs from kernelargs into installed system
Retry umount during image2disk, if processes have the filesystem busy.
Fix DNS behavior during post phase of installtodisk
Invoke confignet properly during firstboot to set up additional interfaces.
Have sshd run during the install from '/sysroot', for convenience
Fix some cosmetic error output for setupssh
2025-08-22 08:39:40 -04:00
Jarrod Johnson
b2b2b5710b
Fix up monolithing sshd_config for platforms that need it
2025-08-20 11:26:41 -04:00
Jarrod Johnson
580c451945
Explicitly restart sshd on completion
...
Some changes from setupssh may require sshd restart, perform it
if running with the sshd unit running.
2025-08-14 07:24:28 -04:00
Jarrod Johnson
47710756a5
Implement mtu for netplan backend
2025-07-25 15:01:26 -04:00
Jarrod Johnson
21429c6d7d
Implement mtu for networkmanager backend
2025-07-25 14:48:03 -04:00
Jarrod Johnson
e489d2d532
Fix setupssh behavior on nearly full /tmp/
2025-06-18 08:55:13 -04:00
Jarrod Johnson
7cb6b1ac35
Fix autoconsole error on SPCR-free EFI implementations
2025-05-13 16:46:18 -04:00
Jarrod Johnson
690980c064
Always specify miimon=100 in networkmanager bonds
...
We already do this for SUSE, it makes sense as a default.
2025-04-23 10:28:42 -04:00
Jarrod Johnson
90f4a2a062
Improve text console behaviors of Ubuntu and RedHat
...
RedHat makes grub redundantly handle serial output that firmware
already handles. If we detect EFI firmware and SPCR ACPI table and
connected serial port, that suggests that firmware will handle.
Ubuntu hates serial console by default, amend it so it can actually
work for serial users.
2025-04-11 12:55:01 -04:00
Tinashe
b596de93a0
seperate into oses
2025-03-27 11:09:25 -04:00
Jarrod Johnson
d2011261ab
Enable creation of bond and dependent tags in one iteration
...
Have a second pass to check interfaces that may
be created by the first pass.
2025-03-11 09:58:51 -04:00
Tinashe
1bfad11ee5
remove-mkconfig
2025-03-05 11:19:34 -05:00
Tinashe
7b4063a42f
modify redirection code for rhel
2025-03-05 11:12:31 -05:00
Jarrod Johnson
79d5a637a7
Correct syntax error in confignet
2025-01-24 11:12:25 -05:00
Jarrod Johnson
67aaee3b4e
Adapt to the bond modes
...
When the team modes were defined in attributes, it was based on the
teamd names. Since the ecosystem abandoned teamd, we went back to
bond.
However, we neglected to map all the names to the closest bond type equivalent.
Change confignet to do the mapping.
2025-01-24 07:58:31 -05:00
Jarrod Johnson
0cae0fe06e
Add installtodisk support for el9 diskless images
2024-12-13 19:04:15 -05:00
Jarrod Johnson
cd2509c485
Ignore unparseable net config files
...
If some pre-processing has rendered config files
unparseable, ignore the file as we can't intelligently rewrite
those.
2024-12-13 16:16:12 -05:00
Jarrod Johnson
9b6204db4f
Switch to the type of the member interface
...
The 'team-slave/bond-slove' type is unneccesary, and
messes up with infiniband.
NetworkManager gets the idea if the 'ethernet' is a bond member without being told explicitly.
2024-10-28 13:21:54 -04:00
Jarrod Johnson
edc3a3e9f3
Have confignet fallback to unicast per deploycfg
...
In routed deployments, the scan mechanism
will not be available. Fall back to routed
access to the deploy server as indicated
by deploycfg from install time.
2024-08-22 16:39:52 -04:00
Jarrod Johnson
dd2119c6d9
Ignore very old ssh key file
2024-08-19 16:26:48 -04:00
Markus Hilger
0961174425
Remove redundant code
2024-08-09 19:55:42 +02:00
Markus Hilger
005adec437
Add error handling for interface_names
2024-08-09 19:45:19 +02:00
Markus Hilger
6943c2dc0f
Make sure VLAN/PKEY connections are created last
...
Needed for VLANs on bond connections etc.
2024-08-09 19:38:45 +02:00
Markus Hilger
6833cd9c53
Add VLAN/PKEY support to confignet
...
Introduce new node attribute net.vlan_id to support VLAN/PKEY
configuration using confignet.
2024-08-09 17:59:34 +02:00
Jarrod Johnson
8fd39c36bb
Fix some mistakes in confignet
2024-08-09 07:55:42 -04:00
Jarrod Johnson
a94b9235e8
Tighten umask on confignet to avoid ubuntu warnings
2024-07-23 10:14:32 -04:00
tkucherera
3b55f500ce
sample post scripts directory
2024-04-16 03:16:15 -04:00
Jarrod Johnson
7aef012a42
Correct string join syntax in confignet
2023-12-05 14:39:36 -05:00
Jarrod Johnson
6763c86387
Add DNS to NetworkManager
...
Similar to netplan, apply DNS to every interface.
2023-11-28 14:35:01 -05:00
Jarrod Johnson
63b737dc52
Correct bonding in confignet for NetworkManager
2023-11-28 14:09:59 -05:00
Jarrod Johnson
ec023831a5
Fix syntax error in confignet
2023-11-09 17:28:38 -05:00
Jarrod Johnson
e03f010eac
Fix Ubuntu confignet without IPv6
...
If confignet did not have ipv6 to work with, it
would fail to work at all.
Also handle when the configuration has a blank DNS server in it.
2023-11-09 09:03:59 -05:00
Jarrod Johnson
8f927d94e9
Switch to bond from team
...
Teaming is deprecated and EL went back to bond, follow
that guidance.
2023-11-01 11:17:04 -04:00
Jarrod Johnson
49a504972f
Fix syntax error in confignet
2023-10-25 14:21:55 -04:00
Jarrod Johnson
ef9083062b
Make multiple attempts to fetch networking configuration
...
Since confignet runs early in startup, the networking can be a bit fickle.
Tolerate outages during early use.
2023-10-03 10:13:53 -04:00
Jarrod Johnson
203dabfb0b
Place nameservers on every NIC in netplan
...
netplan, like others, makes the questionable choice to designate DNS
as a NIC specific setting, despite not mapping well
to a NIC.
Since we model DNS like NTP, a global, just repeat the DNS config for
every interface. This redundancy is fine in testing multiple
interfaces.
2023-09-08 16:56:58 -04:00
Jarrod Johnson
fa60a9dc9f
Add IPv6 support to confignet
2023-09-01 16:34:30 -04:00
Jarrod Johnson
1f32ef2310
Implement basic netplan support
...
Start with single links, ipv4 only for ubuntu.
2023-09-01 10:07:51 -04:00
Simon Thompson
b27542ec00
Confignet does not set autoconnect with network manager so disk installed images do not bring up interface on reboot
2023-08-17 10:30:36 +02:00
Jarrod Johnson
41437c511b
Fix when networkmanager breaks one of our connections
...
This usually happens with ipv6 link local used
in initramfs stage, after networkmanager may
mutilate the ipv6 connectivity.
2023-06-12 08:49:13 -04:00
Jarrod Johnson
5418d9ea97
Place a common script for setupssh
2023-03-10 16:05:29 -05:00
Jarrod Johnson
733b6853dd
Up newly added interfaces as a matter of course
2023-02-28 12:04:20 -05:00
Jarrod Johnson
9c1e7a7142
Allow interfaces to supersede default
...
In some scenarios, the 'default'
interface is overlapped by another connection, either
identical or as a superset in a bond.
Whittle down the default
interface if superseded
to mitigate duplicate interface setup.
2023-02-14 14:53:40 -05:00
Jarrod Johnson
3afd6ecb5d
Temporarily enable IPv6
...
NetworkManage may go further out of it's way disabling ipv6, disable using proc to
overcome that
2022-10-28 12:10:03 -04:00
Jarrod Johnson
b830a317f6
Change suse from team to bonding
...
Suse more naturally supports team, and the industry push to team
has evaporated
2022-03-24 09:10:42 -04:00
Jarrod Johnson
4e4fe03b62
Properly honor explicit interface_names
...
A mistake resulted in plural interface_names being treated as singular.
2022-03-24 07:44:13 -04:00