From 8eecb6b6a8b4ca4a6d70656ef53c030e535c2230 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sat, 13 May 2023 15:36:01 +0000 Subject: [PATCH] Improve time units of docker_swarm documentation. (#623) (#625) (cherry picked from commit 6187068ee56cc3821d886d833eedc10c6be1c5c0) Co-authored-by: Felix Fontein --- plugins/modules/docker_swarm.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/plugins/modules/docker_swarm.py b/plugins/modules/docker_swarm.py index d4b00765..a78d678a 100644 --- a/plugins/modules/docker_swarm.py +++ b/plugins/modules/docker_swarm.py @@ -115,22 +115,24 @@ options: heartbeat_tick: description: - Amount of ticks (in seconds) between each heartbeat. - - Docker default value is C(1s). + - Docker default value is C(1) seconds. type: int election_tick: description: - Amount of ticks (in seconds) needed without a leader to trigger a new election. - - Docker default value is C(10s). + - Docker default value is C(10) seconds. type: int dispatcher_heartbeat_period: description: - - The delay for an agent to send a heartbeat to the dispatcher. - - Docker default value is C(5s). + - The delay (in nanoseconds) for an agent to send a heartbeat to the dispatcher. + - Docker default value is 5 seconds, which corresponds to a value of C(5000000000). + # DefaultHeartBeatPeriod in https://github.com/moby/moby/blob/master/vendor/github.com/moby/swarmkit/v2/manager/dispatcher/dispatcher.go#L32 type: int node_cert_expiry: description: - - Automatic expiry for nodes certificates. - - Docker default value is C(3months). + - Automatic expiry for nodes certificates, given in nanoseconds. + - Docker default value is 90 days, which corresponds to a value of C(7776000000000000). + # DefaultNodeCertExpiration in https://github.com/moby/moby/blob/master/vendor/github.com/moby/swarmkit/v2/ca/certificates.go#L56 type: int name: description: