-
-
Save darron/7dcacaedf0793f3dc38c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"watches": [ | |
{ | |
"type":"key", | |
"key":"/hostsfile/data", | |
"handler":"consulkv get hostsfile/data > /etc/hosts.consul && sudo pkill -HUP dnsmasq && logger -t consul consuldnsbackup: Received hosts: `sha256sum /etc/hosts.consul`" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment