fixes #6853 - make host group provisioning work with katello

Needs ~~https://github.com/theforeman/foreman/pull/1634~~, https://github.com/theforeman/foreman/pull/1636, https://github.com/theforeman/community-templates/pull/97, https://github.com/theforeman/foreman/pull/1637
This seems kind of like an odd place for this. I'd expect it more in an initializer.