I love the MaaS functionality, being able to discover “physical” servers and reporting it to foreman. I’ve found this works perfect if the foreman API is freely accessible. However, in many cases, servers live in different subnets and a smart-proxy is used. Even more, when these are used it’s not uncommon that this subnet has no access to the foreman API directly and thus we have to go via a proxy.
Luckily, the discovery image allows for picking up an SRV record which points to the proxy; if this exists, the discovery data is first directed to the proxy, which in turn directs this to foreman.
The “problem” is that I currently create this SRV record manually; which implies that, each time I reinstall foreman I lose this SRV record.
Would it not be nice to have an option to enable this from the installer, in case DNS and Discovery are active, the SRV record is just created. Could, IMO even just be created in case just DNS is created.
I’m more than willing to create a patch for always creating an SRV record, in case DNS is activated from the installer, if people would see value in this.
I’m currently posting this in support (instead of RFC), as there might be people whom also came across this “issue” and perhaps found a workaround for this? Which I always try to figure out first before pushing changes to this great project!