forked from toolshed/docs.coopcloud.tech
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/configfile (you'll at least need to specifyPort 222). - Add the suggested entry to
inventories/inventory - Create a new
servers/<client>/<server>.ymlfile, based onservers/neuronic/swarm.yml(including theswarm.single-noderole) - Run
ansible-playbook servers/<client>/<server>.ymlto 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 | bashabra context create swarm.client.tld yourusername 222abra context init swarm.client.tldabra context use swarm.client.tld