CDIST-TYPE__CONSUL_WATCH_NODES(7)
π cdist-type__consul_watch_nodes π
okay so bestie, welcome to cdist-type__consul_watch_nodes β it's a cdist type from the cdist manual, and it's literally the one that handles consul nodes watches. yep. that's the whole vibe. let's get into it π¦
β¨ NAME β¨
cdist-type__consul_watch_nodes β manages consul nodes watches π
πΈ DESCRIPTION πΈ
So what this type actually does is generate and deploy watch definitions of type 'nodes' for a consul agent. that's it, that's the job, and it does it beautifully π
And because the parameter docs live elsewhere (iykyk), the manual is like: go read http://www.consul.io/docs/agent/watches.html for the parameter documentation. no cap, that's where the details are π₯
π REQUIRED PARAMETERS π
these ones you cannot skip, bestie. they're mandatory. main character requirements only:
handlerβ the handler to invoke when the data view updates. that's the thing that gets called when stuff changes, periodt β¨
π OPTIONAL PARAMETERS π
the little extras, the accessories to your outfit:
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 π
π¦ EXAMPLES π¦
here's the moment you've been waiting for, the actual usage:
__consul_watch_nodes some-id \
--handler /usr/bin/my-key-handler.sh
look at that. gorgeous. iconic. copy it, run it, slay π
β SEE ALSO β
go peek at these too, they're part of the lore:
cdist-type__consul_agent(7)- consul documentation at: http://www.consul.io/docs/agent/watches.html πΈ
π AUTHORS π
- Steven Armstrong
<steven-cdist--@--armstrong.cc>β the legend behind this one π
π 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.
fr fr, that's the license. read it, respect it, it's giving legal π
π COPYRIGHT π
ungleich GmbH 2021 π«Ά
and that's the whole page bestie!! this was version 7.0.0, dated Jul 31, 2022, from the cdist crew. go forth and watch those nodes, you absolute icon π§πβ¨
π¦ 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