Do you need the package version reported to Katello? If not and everything is already handled in Azure, I would not care about subscription-manager and content at all. In this case a puppet report creating an unmanaged host should be enough. If you want it to assign a hostgroup, you can look into the default hostgroup plugin which allows to provide a mapping of facts to hostgroup.
@Dirk do you have experience on how to assign owner and location on first puppet run? I cannot set them as default in the hostgroup but maybe it is possible to set them via custom facts or a special parameter?
Unfortunately no, my best idea for a Puppet environment would be a bulk action via UI or hammer. With hammer this could be converted to a cronjob if needed.
Thanks for the help, fyi I found the facts foreman_location and foreman_hostgroup which allow to manage them. Settings > Facts as some facts which allow changes. I haven’t found anything for owner, which might be good because only the owner or someone with correct permissions should be allowed to do that.
If you could change that via facts their might be some security problems.
One interesting fact is foreman_comment which changes the Comment in the UI. I only found that one while searching through the code.
We accomplish this by creating a content view that doesn’t contain any repositories. We get the host registered to the system and foreman has no repositories to manage.