Create your local cluster of machine¶
This playbook will create x nodes machine named name1 to nameN:: the purpose of this script is for local debug or tests, you can after access to these by:
vagrant ssh nodeN
Required:
install Vagrant:
https://www.vagrantup.com/docs/installation/
Setup:
cd vagrant
your-favorite-editor vagrant.yml
Run:
vagrant up
Destroy it:
vagrant destroy -f
Add local nodes in docker-machine (DEPRECATED in version >= 0.2)¶
This script will create a swarm on nodes machine named node1 to nameN, the purpose of this script is for local debug or tests, you can after access to these by:
docker-machine ssh nodeN
Required:
install Docker machine:
https://docs.docker.com/engine/swarm/
Run:
WORK IN PROGRESS
docker-machine create \
--driver generic \
--generic-ssh-user "ubuntu" \
--generic-ip-address=35.170.64.155 \
--generic-ssh-key ~/.ssh/terraform_key \
node1