CDIST-TYPE__CONSUL_WATCH_SERVICES(7)
π NAME π
cdist-type__consul_watch_services β bestie, this is the consul services watches manager, and it's giving "I got you" energy β¨
πΈ DESCRIPTION πΈ
Okay so listen. This type generates and deploys watch definitions of type 'services' for a consul agent. That's the whole job, and it does it flawlessly, no cap π
Wanna know what all the params actually mean? The parameter documentation lives at http://www.consul.io/docs/agent/watches.html β go peek, iykyk π¦
π REQUIRED PARAMETERS π
handlerβ the handler to invoke when the data view updates. Yes this one is required, like actually required, not optional-required, so don't come to the function with nothing π
β¨ OPTIONAL PARAMETERS β¨
datacenterβ you can pass this to override the agent's default datacenter. Main character move if your agent's default isn't the vibe you want πstateβ whether this watch is'present'or'absent'. Defaults to'present', so if you say nothing it just shows up like it owns the place π«Άtokenβ can be provided to override the agent's default ACL token. Use it when you need different credentials, periodt π
π EXAMPLES π
Look at her go:
__consul_watch_services some-id \
--handler /usr/bin/my-key-handler.sh
That's it. That's the whole thing. Iconic, honestly π
π SEE ALSO π
cdist-type__consul_agent(7)β the sibling, go read it too- consul documentation at: http://www.consul.io/docs/agent/watches.html β the source of truth, fr fr
π«Ά AUTHORS π«Ά
Steven Armstrong <steven-cdist--@--armstrong.cc> β the legend who wrote this π
π COPYING π
Copyright (C) 2015 Steven Armstrong. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
π COPYRIGHT π
ungleich GmbH 2021
And that's the whole page, bestie! This was version 7.0.0, dated Jul 31, brought to you by the cdist crew β stay slay, stay deployed, and always pass your --handler πβ¨ππ¦πΈ
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms