Skip to content

Support for getting swarm join token #292

@innovate-invent

Description

@innovate-invent

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)

  • docker_swarm_token

Potential Terraform Configuration

resource "docker_swarm_token" "master2" {
  type = "manager" # / "worker"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions