Is there a Docker Compose -like solution for Ansible?

47 views
Skip to first unread message

Bence Takács

unread,
May 3, 2016, 7:31:53 AM5/3/16
to Ansible Project
Hi

We are mostly using ansible for creating/managing our TEST environments.
One environment can contain the different types of services/nodes like:
- web/application server(s)
- windows services
- DBs
- JMS queues
- etc

The environment layout (the combination of the above types) can differ per project and per environment.
I would need to orchestrate the creation of an environment.
For docker there is Docker compose which describes the layout of an environment, and in Kubernetes Pod templates they also have some kind of descriptors for this.
But I use good old VMs without containers.

Is there a solution for that using Ansible?
Roles are not for that, neither inventory (with hosts/groups).

Any idea, how should I organize my scripts to achieve that goal?
Or a tool to do that?

Regards:
    Bence
 

Bence Takács

unread,
May 3, 2016, 8:51:09 AM5/3/16
to Ansible Project
I've just that inventory with group hosts and group variables could be suitable for storing the description of the environmental layout:
One 'group' could be one 'environment', one 'host' could be one 'host' inside the environment, and every related service settings (port, queue, etc) could be stored in group variables 

Anybody can suggest a good exmple anywhere to check?

Regards:
   Bence
Reply all
Reply to author
Forward
0 new messages