CDIST-TYPE__CON...WATCH_KEYPREFIX(7)
β¨ cdist-type__consul_watch_keyprefix β¨
okay bestie, welcome to the cdist-type__consul_watch_keyprefix manual page, section 7 of the cdist manuals π this one is short, sweet, and honestly kind of iconic.
π NAME π
cdist-type__consul_watch_keyprefix β manages consul keyprefix watches π
πΈ DESCRIPTION πΈ
So basically this type generates and deploys watch definitions of type 'keyprefix' for a consul agent. that's it, that's the whole job, and it does it flawlessly π
and if you wanna know what all those parameters actually mean? go read the docs at http://www.consul.io/docs/agent/watches.html β that's where the parameter documentation lives, not here, i don't make the rules π
π REQUIRED PARAMETERS π
like, you literally cannot skip these, fr fr.
handlerβ the handler to invoke when the data view updates. it's the thing that gets called when stuff changes, no handler no party πprefixβ the prefix of keys to watch for changes. this is the lil key-prefix you're stalking for updates π
π¦ OPTIONAL PARAMETERS π¦
these ones are the ~vibes~ extras, take 'em or leave 'em.
datacenterβ can be provided to override the agent's default datacenter πstateβ if this watch is'present'or'absent'. Defaults to'present'. (so if you say nothing, it's showing up. manifesting β¨)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, copy-paste away bestie:
__consul_watch_keyprefix some-id \
--prefix foo/ \
--handler /usr/bin/my-prefix-handler.sh
ate. no notes. π
π 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> β the main character 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.
(so like, go forth and remix, just keep the license, periodt πβ¨)
β COPYRIGHT β
ungleich GmbH 2021
and that's the whole page, bestie!! this was version 7.0.0, dated Jul 31, 2021 β thanks for reading, mwah ππ§
π¦ 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