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

not working for nodes > 1 #27

Open opichon opened 6 years ago

opichon commented 6 years ago

Sorry, but I cannot get this to work. Terraform keeps spinning with this message:

module.docker-swarm-mode.managers.digitalocean_droplet.manager.2: Still creating... (3m10s elapsed) module.docker-swarm-mode.managers.digitalocean_droplet.manager.1: Still creating... (3m20s elapsed) module.docker-swarm-mode.managers.digitalocean_droplet.manager.0: Still creating... (3m20s elapsed)

The copying of the scripts to /tmp directory is not occurring except in the first manager node.

opichon commented 6 years ago

In fact. sometimes it's not working even with 1 manager and 1 node. Same problem. The file provisioning (copying the scripts to /tmp is not occurring.)

I am able to provision droplets otherwise, so it's not a problem with DO or the DO token.

thojkooi commented 6 years ago

I will take a look in a bit. Do you use user-data? Also, what droplet image do you use?