Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
After provisioning a swarm manager, I need a way to get a swarm join token so that I can hand it off to additional nodes during provisioning. A resource that does nothing more than fetch a token would be very helpful with this. It only requests the token on creation. This is equivalent to docker swarm join-token (worker|manager). Update and delete of the resource would be no-ops.
New or Affected Resource(s)
Potential Terraform Configuration
resource "docker_swarm_token" "master2" {
type = "manager" # / "worker"
}
Community Note
Description
After provisioning a swarm manager, I need a way to get a swarm join token so that I can hand it off to additional nodes during provisioning. A resource that does nothing more than fetch a token would be very helpful with this. It only requests the token on creation. This is equivalent to
docker swarm join-token (worker|manager). Update and delete of the resource would be no-ops.New or Affected Resource(s)
Potential Terraform Configuration