Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

dumb question... #20

Open
ghost opened this issue Apr 26, 2018 · 5 comments
Open

dumb question... #20

ghost opened this issue Apr 26, 2018 · 5 comments
Labels

Comments

@ghost
Copy link

ghost commented Apr 26, 2018

does... this initialize / copy the certs?

@thojkooi
Copy link
Owner

It doesn't do anything fancy with certificates.

@ghost
Copy link
Author

ghost commented Apr 26, 2018

so... how would one set docker to connect to the swarm? does it listen on :2376 by default?

@ghost
Copy link
Author

ghost commented Apr 26, 2018

I've seen terraform-swarm generate certs, but don't know how to apply that same logic here.

@thojkooi
Copy link
Owner

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.

@thojkooi
Copy link
Owner

@toxik-io , I've pushed some work in progress changes on the overhaul branch, including an example:

https://github.com/thojkooi/terraform-digitalocean-docker-swarm-mode/tree/77d75b908567508e0579f49766ddcef93b945434/examples/usage

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant