Best way to import/integrate vCenter VMs

The vCenter is already connectet as a computing ressource with my foreman.

Now i want to integrate/ import all VMs as hosts from my vCenter into foreman.

I want that they are importet with the correct informationons about the os version like CentOS 7.* but in the computing reccource list the are only listet with CentOS 4/5 or higher.
They are more than 50 VMs and i dont want to import every single VM manually.

Is there an other way to do this?.

The way I typically recommend is by getting them imported via a report from configuration management.

If you have decided for Puppet, simply install the agent and configured it run against Foreman and you will get the systems in.

If you will use Ansible, you can create a inventory file (simply export a list and adjust it to conatin only the fdqn) and run ansible -m setup all after configuring the callback plugin, this will gather the facts and send a report which will create the hosts.

For other tools a similar solution will be available, but I have no experience with them.

I also recommend to have a look at default hostgroup plugin which can help grouping systems during import.