Skip to content
Maximilien Richer edited this page Aug 8, 2016 · 1 revision

Some ansible scripts where crafted ahead of development to bootstrap cluster deployment when needed. You can find them under the deploy/ directory.

You'll need:

  • ansible 2.1+
  • docker 1.10.3 (API 1.22)

First export some parameters:

export AWS_ACCESS_KEY_ID='ACME******'
export AWS_SECRET_ACCESS_KEY='acme*************'
export ANSIBLE_HOST_KEY_CHECKING=False

Provision swarm cluster:

ansible-playbook aws-provision.yaml

Swarm socket is at <master>:4000, you can check it with docker -H <master>:4000 info.

Disallocate cluster (using dynamic inventory)

ansible-playbook -i ec2.py aws-terminate.yaml
Clone this wiki locally