CDIST-TYPE__CONSUL_WATCH_KEY(7)
π cdist-type__consul_watch_key β the manual page, bestie edition
okay so this is cdist-type__consul_watch_key(7), a page from the cdist manual set, and it's literally all about making consul key watches happen for you. no cap. π
β¨ NAME β¨
cdist-type__consul_watch_key β manages consul key watches π¦
πΈ DESCRIPTION πΈ
Generate and deploy watch definitions of type 'key' for a consul agent.
That's the whole vibe. This type does the generating, it does the deploying, and it does it for the 'key' watch type specifically. π₯
For all the parameter documentation deets, go peek at http://www.consul.io/docs/agent/watches.html β the original page says so, and we respect the source. β¨
π REQUIRED PARAMETERS π
these ones? mandatory. you cannot skip them. the type will simply not be serving looks without them. π
handlerβ the handler to invoke when the data view updates. like, when the data changes, this is the thing that gets called. periodt. π«Άkeyβ the key to watch for changes. the actual thing you're keeping eyes on. π
π OPTIONAL PARAMETERS π
these ones are the little extras, the accessories to the fit. cute but not required. π
datacenterβ can be provided to override the agent's default datacenter. you wanna switch it up? go off. βstateβ if this watch is'present'or'absent'. Defaults to'present'. so if you say nothing, it's present, and that's just the default behaviour, no cap. π§tokenβ can be provided to override the agent's default ACL token. another little override situation. π
π EXAMPLES π
here's how you actually use it, bestie. look at this gorgeous invocation:
__consul_watch_key some-id \
--key foo/bar/baz \
--handler /usr/bin/my-key-handler.sh
see how some-id is the id, then --key says what to watch, and --handler says who to call? chef's kiss. ate. π₯π
π SEE ALSO π
cdist-type__consul_agent(7)β the sibling page, go read it too. π«Ά- consul documentation at: http://www.consul.io/docs/agent/watches.html.
π AUTHORS π
Steven Armstrong <steven-cdist--@--armstrong.cc> β the icon 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.
(yes, the license paragraph, exactly as it must be. legal girlies stay legal. π )
β COPYRIGHT β
ungleich GmbH 2021
okay so real talk β this page came out of cdist 7.0.0, dated Jul 31, 2022, and that's the whole thing. go watch some keys, bestie. πβ¨ππ¦πΈ
π¦ 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