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

Add support for docker swarm init settings #23

Open thojkooi opened 6 years ago

thojkooi commented 6 years ago

add support for the extra parameters that can be provided when running swarm init:

command default  Description
--autolock   Enable manager autolocking (requiring an unlock key to start a stopped manager)
--availability active Availability of the node (“active”|”pause”|”drain”)
--cert-expiry 2160h0m0s Validity period for node certificates (ns|us|ms|s|m|h)
--dispatcher-heartbeat 5s Dispatcher heartbeat period (ns|us|ms|s|m|h)
--external-ca   Specifications of one or more certificate signing endpoints
--max-snapshots   API 1.25+Number of additional Raft snapshots to retain
--snapshot-interval 10000 API 1.25+Number of log entries between Raft snapshots
--task-history-limit 5 Task history retention limit