Remote IP must match the IP of the provisioning interface in order to find a host in Foreman DB. When request is proxied, it is passed via a HTTP header.
The provisioning interface has a private IP, but the foreman server can’t really resolve that. And the proxy of course contacts the main foreman server with the public IP.
The name of the proxy (for that public IP) is resolvable in DNS (and was configured at installation-time of the proxy). I added all kinds cnames as aliases to the proxy for the different names I could come up with (IPs) that it could be using. But they are all private IPs of course…
As I said, it now works. If I haven’t “worked” on the host for a while, I need to cancel the build and start a new build. Then it gets a new token and with that token, the kickstart-file can be downloaded.
It formats the disks etc.
However, now I’m stuck at where it can’t seem to download a specific RPM file: