1.3 KiB
1.3 KiB
Setting up a new Docker swarm box
Create and provision a new VPS with Docker installed.
The easiest way of doing this is using actions/newhetzner.yml
in our infrastructure
repository.
Make sure you have infrastructure
cloned and set up according to the instructions, then run ansible-playbook actions/newhetzner.yml
and answer the questions.
- Add the server to your
~/.ssh/config
file (you'll at least need to specifyPort 222
). - Add the suggested entry to
inventories/inventory
- Create a new
servers/<client>/<server>.yml
file, based onservers/neuronic/swarm.yml
(including theswarm.single-node
role) - Run
ansible-playbook servers/<client>/<server>.yml
to install Docker
The easiest way forwards from here is to install abra
and use it to set up remote context and initialise the swarm:
curl -fsSL https://install.abra.autonomic.zone | bash
abra context create swarm.client.tld yourusername 222
abra context init swarm.client.tld
abra context use swarm.client.tld