geerlingguy / ansible-role-docker

Ansible Role - Docker
https://galaxy.ansible.com/geerlingguy/docker/
MIT License
1.85k stars 859 forks source link

Feature Request - Swarm clustering #75

Closed colonelpopcorn closed 6 years ago

colonelpopcorn commented 6 years ago

I've had some trouble getting your Kubernetes role to work in a Vagrant environment so I decided to try Docker Swarm and it was a whole lot easier to create a cluster. Yeah, I know it's not as complicated but it would be nice to have some functionality similar to your Kubernetes role in this role. I've got an idea on how to set it up and I'd like to get a pull request in for it. Please let me know if this something you'd be interested in having as a part of this role.

geerlingguy commented 6 years ago

Haha, I have stories—many horrible, war stories—from getting Kubernetes running on Vagrant. But here are a couple examples where I do have it working after working through some fun networking things...

As mentioned in the PR, I would rather not add swarm support to this role, but rather I think it should be a simple but separate role.

colonelpopcorn commented 6 years ago

I published my own role here. However, it seems I might have duplicated some other roles. Still, I think it was a good learning experience. Thanks!