DO NOT MERGE refs #6145 - calculating installation url based on smart proxy

Opening mainly to abuse jenkens and run tests

Main PR here https://github.com/Katello/katello/pull/4241
optional comment: might be nice to have consistent naming, e.g.
1. create_puppet_environment / update_puppet_environment  --or--
2. create_foreman_environment / update_foreman_environment