Open ghost opened 6 years ago
It doesn't do anything fancy with certificates.
so... how would one set docker to connect to the swarm? does it listen on :2376 by default?
I've seen terraform-swarm generate certs, but don't know how to apply that same logic here.
You would have to have your Docker installation handle exposing the Docker deamon / API on port 2376
, using user data, or through some configuration management tool such as puppet.
I've messed around a bit with trying to get Terraform itself to handle it today and will push some examples for it soon.
@toxik-io , I've pushed some work in progress changes on the overhaul
branch, including an example:
Details on how to generate the certificates using cfssl
can be found in the certs/
directory in that example. It has a couple of shell scripts you can run that will generate a set of certificates and keys.
does... this initialize / copy the certs?