ansible-collections / ansible-consul

:satellite: Ansible role for Hashicorp Consul clusters
https://galaxy.ansible.com/ansible-community/consul/
BSD 2-Clause "Simplified" License
458 stars 316 forks source link

Support containers/docker? #185

Open jeffWelling opened 6 years ago

jeffWelling commented 6 years ago

Vagrant has support for using docker containers in place of VMs, and in my experience it can take the creation of a 3 node cluster from ~3-5 minutes down to 10-15 seconds because of the limitations in VirtualBox around needing to create hosts sequentially. This Vagrantfile looks non-trivial but I'm interested in seeing it support Docker containers, I'm wondering how complicated the community thinks that might be?

brianshumate commented 6 years ago

I personally have a strong preference for orchestrating Docker containers with Terraform instead nowadays as I work with it daily at HashiCorp and find it to be more enjoyable and faster.

See also: my other project, Vaultron which does exactly that for a specific use case and can spin up a Vault cluster of 3 instances with a Consul cluster of 3 servers on Docker with Terraform in less than one minute on a modern laptop.

While I could support this being a possibility, I personally have no interest in implementing it, and have pretty much transitioned away from Ansible for day-to-day use.