Skip to content

gvizdpeter/ansible-docker-swarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible provisioning of docker swarm

To run local swarm just use these commands from root of project:

ssh-keygen -t rsa -f ssh/id_rsa
vagrant up

In .env file you can adjust:

  • vagrant provider
  • ubuntu version
  • number of nodes
  • nodes resources
  • swarm domain for ha proxy stats, portainer and traefik

After successful creation of virtual machines is automatically started ansible provisioning. This provisioning controls:

  • nfs server with shared volume
  • nfs clients connected to nfs server
  • docker swarm orchestration (leader, manager, worker)
  • ha-proxy provisioing with connection to docker swarm managers

Roles of individual nodes can be controlled by file ansible/hosts

After successful ansible provisioning you should be able to access:

All necessary domain aliases should be added to your hosts file automatically during vagrant provisioning. After running vagrant destroy -f, they will be all removed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published