May 2017
Intermediate to advanced
436 pages
9h 44m
English
The vfarcic/cloud-provisioning (https://github.com/vfarcic/cloud-provisioning) repository already has the Packer and Terraform configurations we'll use. They are located in the directory terraform/do:
cd terraform/do
The first step is to use Packer to create a snapshot. To do that, we'll need our DigitalOcean API token set as the environment variable DIGITALOCEAN_API_TOKEN. It is the same token we set as the environment variable DIGITALOCEAN_ACCESS_TOKEN. Unfortunately, Docker Machine and Packer have different naming standards:
export DIGITALOCEAN_API_TOKEN=[...]
Please replace [...] with the actual token.
We'll instantiate all Swarm nodes from the same snapshot. It'll be based on Ubuntu and ...
Read now
Unlock full access