Jarrod Johnson
d7577a04a7
Fix ESXi compatibility of apiclient
...
apiclient was using Linux specific network information.
Change to libc getifaddrs for better cross-platform compatibility.
2025-12-11 08:46:19 -05:00
Jarrod Johnson
100944490c
Fix potentially uninitialized curridx
2025-11-17 15:07:17 -05:00
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
7a2cb80f6a
Make hmac import optional
...
Some environments do not have this module
2025-09-12 16:57:37 -04:00
Jarrod Johnson
5f26fb73e6
Enable apiclient to be more self-sufficient
...
Provide a totally 'clortho' and 'copernicus' free behavior.
This allows some flows to skip the cpio addons to go straight to python.
Some scenarios demand the utilities (initramfs) and others are more awkward with the utilities,
so we enable both.
2025-09-09 16:47:44 -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
836b629986
Remove unused json import from apiclient
2025-08-11 12:31:44 -04:00
Jarrod Johnson
58b6a2d317
Fix python2 incompatibility with apiclient
2025-08-11 12:20:10 -04:00
Jarrod Johnson
fc6c1495d3
Change comment to not have unicode
...
Some environments don't like the UTF
2025-08-11 12:10:33 -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
f797ede15f
Handle 503 from a stopped confluent member
...
If a confluent collective member is stopped, then the
HTTPS check passes. If we end up with a 503 indicating
the other end has a missing confluent, fall back to the loop
to check for other living collective members.
2025-04-29 15:44:13 -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
Jarrod Johnson
9174ad651f
Fallback to mac
...
Some systems do not have UUIDs. Which is unfortunate, but usually
a system mac address does well enough.
2025-04-11 08:38:51 -04:00
Jarrod Johnson
5df6f9adbf
Merge pull request #184 from tkucherera-lenovo/console-redirect
...
seperate console redirect scripts into oses
2025-04-07 15:19:03 -04:00
Jarrod Johnson
b1ba1720b9
Suppress scary message from apiclient when asked to just do -f.
2025-04-02 11:10:33 -04:00
Tinashe
b596de93a0
seperate into oses
2025-03-27 11:09:25 -04:00
Sorin Toderica
62e081cd72
Modify apiclient utility, for esxi7 only, to check if the uplink of vSwitch0 is up and if not, to try to replaces it with a different vmnic, that is up
2025-03-25 09:50:40 +02: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