Skip to content

m-raoufi/docker-swarm-playbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto deployment of Docker Swarm (multimanager) cluster (including docker installation)

Edge version of docker will be used for cluster deployment

Docker cluster will be deployed with N-managers, N-workers

Hosts are used in swarm-cluster already will be skipped

Swarm hosts requirements:

  • CentOS \ RedHat
  • Internet connection (to get packages from repos)

Ansible host requirements:

  • Ansible v2.4 (or newer)
  • Jinja 2.9 (or newer)
  • Ssh-keys should be copied to all hosts of your invertory (ssh-copy-id can be used)

Running ANSIBLE-PLAYBOOK

$ sudo ansible-playbook ./swarm-cluster.yml

http_proxy parameter is available, to setting up proxy for docker

$ sudo ansible-playbook -e http_proxy=your-proxy-ip-or-name:your-port ./swarm-cluster.yml

Default config file: ./ansible.cfg

Default settings:

  • List of hosts (invertory-file): "inventory = ./invertory.cfg"
  • User on hosts: "remote_user = root"

Official Docker Swarm documentation

https://docs.docker.com/engine/swarm/swarm-tutorial

About

Install docker swarm with ansible on centos 7

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published