Creating Multiple Hosts in one go through foreman UI

Problem:
Is there a way to provision multiple VM’s or Bare-Metal machine in one go.
Expected outcome:
I should be able to provision multiple VM’s or Bare-Metal machine in one go.
Foreman and Proxy versions:
1.23
Foreman and Proxy plugin versions:
1.23
Distribution and version:
1.23
Other relevant data:
Is there a feature of provisioning multiple hosts for both VM’s and Bare-Metal machine in one go through Foreman. If not can it be done through API’s ? If yes please guide.

Hi Team,

Can you please guide me on how to proceed here.

Hi,
there is currently no way how to create multiple hosts with the same configuration in one step. The ‘clone’ button in UI is as close as you can get, but you can still create only one host at a time.

Hi Ondrej,

Thanks for your answer.
What about any other option like API or through foreman CLI ?

1 Like

The only way I can think of is having a script that would call create endpoint in API or do hammer host create several times.

You could also look into the ansible modules for that.

Please note my other post to Provision/Install multiple servers
https://github.com/ATIX-AG/foreman_acd