Skip to content

Commit

Permalink
Add a sleep between tries of consul service reload
Browse files Browse the repository at this point in the history
As expressed issue voxpupuli#231, consul reload will fails if it happens while consul is still booting. However, the addition of multiple tries does not solve the issue as all tries can occur in a very short lapse of time.

In this PR, we introduce a sleep between each try, leaving consul up to 20 seconds between the first and the last reload to complete its boot, which should be enough.
  • Loading branch information
cmd-ntrf committed Nov 11, 2019
1 parent 7ff052c commit d82f303
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions manifests/reload_service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
command => $command,
refreshonly => true,
tries => 3,
try_sleep => 10,
}
}
}

0 comments on commit d82f303

Please sign in to comment.