I have one foreman instance and two isc-dhcp servers working in failover mode, sharing config using an nfs server.
I would like to use foreman-proxy to control both of the dhcpd servers to create the static leases, pxe file, etc.
I see here two ways of doing it:
Deploy one foreman-proxy instance on the foreman node and edit settings to control both dhcpd servers using remote-isc plugin.
Deploy two foreman-proxy instances on the dhcp nodes. And integrate them into the foreman instance.
Install Foreman-Proxy on both dhcp nodes with the default isc-dhcp (wipe installed isc-dhcp first) included in the foreman-installer. (and configure for high availability)
Is here anyone, who knows, how to configure the smartproxy in one of these ways, to support the control of both dhcp servers? (Using e.g. foreman-installer -i)
Control of both dhcp servers using foreman-proxy
Foreman and Proxy versions:
Forean-Proxy 2.1 (?, included in the installer)
Foreman and Proxy plugin versions:
default/included in the installer
Distribution and version:
dhcpd 4.3.6 (dnf install)
Other relevant data:
My current dhcpd configuration of both nodes is uploaded on the following gist:
If this is a feature included in the newest build (2.2, nightly) please give a hint.
My Goal is to have a high available DHCP Server, which I can control using the smartproxy. But for this to Work I would either need
two smartproxies (in the DHCP Server itself installed), individually controlling one DHCP server or
one smartproxy, which would be capable of controlling both dhcp servers.
The Problem I see, is, that I would need to control the First and the second dhcp server as well, from the smartproxy, because all omapi calls to the first would fail, If the first dhcp server fails/is down.
At least If I choose the option to install only one smartproxy, the smartproxy would then need to be able to have both hosts registered to use the omapi port on both servers.
The installer does have support for setting up DHCP failover, though I have no personal experience with it. I’d recommend looking at foreman-installer --full-help. There’s some --foreman-proxy-dhcp-failover parameters.