thojkooi / terraform-digitalocean-docker-swarm-mode

Terraform module for provisioning a Docker Swarm mode cluster on DigitalOcean
https://registry.terraform.io/modules/thojkooi/docker-swarm-mode/digitalocean
MIT License
62 stars 27 forks source link

error with joining swarm for worker #33

Closed bladecoates closed 4 years ago

bladecoates commented 5 years ago

Hi,

I'm testing out this terrafrom plan, and am getting the following when provisioning nodes. I currently have it set to 1 manager and 3 workers.

module.swarm_mode_cluster.module.workers.digitalocean_droplet.node[1] (remote-exec): "docker swarm join" requires exactly 1 argument.
module.swarm_mode_cluster.module.workers.digitalocean_droplet.node[1] (remote-exec): See 'docker swarm join --help'.

module.swarm_mode_cluster.module.workers.digitalocean_droplet.node[1] (remote-exec): Usage:  docker swarm join [OPTIONS] HOST:PORT

module.swarm_mode_cluster.module.workers.digitalocean_droplet.node[1] (remote-exec): Join a swarm as a node and/or manager

I have verified I can join the swarm manually after the plan fails with using the output from stdout. I have changed the plan to use one manager and 3 workers. I also changed the datacenter to NCY3. I am using the usage example plan.