add consul-do to community tools

adding consul-do Do something based on leadership status

https://github.com/zeroXten/consul-do

From README.md

Useful for running cronjobs in HA mode.

Run something like this on two or more servers:

* * * * * /usr/bin/consul-do JOB-1 $(/bin/hostname) && /path/to/job1
*/10 * * * * /usr/bin/consul-do JOB-2 $(/bin/hostname) && /path/to/job2
Only one of the servers will be elected leader and will therefore run the job. Should the leader fail, a follower will take over.
This commit is contained in:
Alvaro Miranda 2015-09-02 00:52:20 +12:00
parent 0f49e1c3a9
commit 7e32c6a1de
1 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,9 @@ description: |-
<li>
<a href="https://github.com/CiscoCloud/consul-cli">consul-cli</a> - Command line interface to Consul HTTP API
</li>
<li>
<a href="https://github.com/zeroXten/consul-do">consul-do</a> - Do something based on leadership status
</li>
<li>
<a href="http://xordataexchange.github.io/crypt/">crypt</a> - Store and retrieve encrypted configuration parameters from etcd or Consul
</li>