Override hostname of puppetmaster instead of using proxy hostname
Foreman currently configures systems with a puppetmaster hostname of the smart proxy that is configured as the puppetmaster, but the hostname is Foreman's perspective of the proxy's hostname.
For complex network environments (perhaps NATed or with access to the proxy tunnelled) then the hostname that Foreman sees isn't the same as the one the client systems should be using for the puppetmaster. It should be possible to override the puppetmaster hostname provided to systems somewhere.Possibly:
- a parameter on the host or hostgroup that overrides the name
- a config variable on the proxy itself that's passed through
- an attribute on the smart proxy object