CDIST-TYPE__CONSUL_WATCH_SERVICE(7)
π cdist-type__consul_watch_service π
okay bestie, welcome to the manual page for cdist-type__consul_watch_service β it's a cdist type, it's section 7, and it is literally your new fave. let's get into it π¦
β¨ NAME β¨
cdist-type__consul_watch_service β she manages consul service watches, and she does it flawlessly π
πΈ DESCRIPTION πΈ
This type generates and deploys watch definitions of type 'service' for a consul agent. that's the whole vibe. π
for all the parameter documentation, go look at <http://www.consul.io/docs/agent/watches.html> β no cap, it's all there.
π REQUIRED PARAMETERS π
these ones? not optional. you need them, fr fr.
handlerβ the handler to invoke when the data view updates. like, when the data goes "new info bestie", this is who gets called π«Άserviceβ the service to watch for changes. the main character you're keeping an eye on π
π OPTIONAL PARAMETERS π
these are the little extras you can add if you feel like it. slay.
datacenterβ can be provided to override the agent's default datacenter β¨stateβ if this watch is'present'or'absent'. Defaults to'present'. πtokenβ can be provided to override the agent's default ACL token πtagβ filter by tag π·οΈ
π BOOLEAN PARAMETERS π
just flip it on, no value needed, iconic behaviour honestly.
passingonlyβ specifies if only hosts passing all checks are displayed β
β EXAMPLES β
here's the tea, copy these exactly, don't freestyle:
__consul_watch_service some-id \
--service consul \
--handler /usr/bin/my-handler.sh
__consul_watch_service some-id \
--service redis \
--tag production \
--handler /usr/bin/my-handler.sh
__consul_watch_service some-id \
--service redis \
--tag production \
--passingonly \
--handler /usr/bin/my-handler.sh
see how they escalate? consul β redis β redis with --tag production β and then --passingonly joins the party. character development. πβ¨
π SEE ALSO π
cdist-type__consul_agent(7)π- consul documentation at: <http://www.consul.io/docs/agent/watches.html> π
π«Ά AUTHORS π«Ά
- Steven Armstrong
<steven-cdist--@--armstrong.cc>β thank you for your service, king π
π 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.
yes bestie, that's the GPL v3-or-later situation, read it, respect it, live it π
π COPYRIGHT π
ungleich GmbH 2021
and that's the whole page!! this was cdist-type__consul_watch_service, from cdist, version 7.0.0, dated Jul 31 β mwah, take care of her, she's precious π§π
π¦ 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