Multi-host deployment with Foreman

Does Foreman have support or have a plugin that support a stack deployment where multiple hosts can be created at the same time or back to back without having to manually create them one-by-one? I did see that there is a https://github.com/theforeman/foreman_deployments plugin, however that appears to be unmaintained and I am hesitant to try knowing that it will likely break on the current/future versions.

My proposal would be to use a script to call the Hammer CLI, maybe with python. That’s the way we do it here for a datacenter of more than 500 servers.

1 Like

@cli I recall there was a batch mode in hammer. Thoughts?

1 Like

Do you mean hammer shell?

Anyway, isn’t there an Ansible module for Foreman already? That would do it.

2 Likes

Should be possible indeed. You mean this one?

https://www.theforeman.org/plugins/foreman_ansible/

1 Like

No, folks work on modules which are essentially foreman API wrapper to some degree I think.

1 Like

I suppose @lzap meant https://github.com/theforeman/foreman-ansible-modules/

1 Like