Hi,
We have a 2 tiers environment where the front-end servers connects to the backend servers.
As an example we have 30 application servers and 3 backend servers, let's say every backend server should support up to 10 frontend servers. We need Ansible to automatically setup the configuration so the load is shared :
servers 1-10 should connect to db1
servers 11-20 should connect to db2
servers 21-30 should connect to db3
The front-end servers doesn't need to be sequential, the number of front-end can increase as the number of backends. The goal here is we want Ansible to be able to automatically balance the setup so the front-end servers have been evenly configured to use different backend servers.
Is this possible using Ansible ? I was trying to find a similar example using Jinja templates but maybe I was looking at the wrong place ?
Any help appreciated.
Regards,
N.