CDIST-TYPE__CONSUL_WATCH_EVENT(7)
π cdist-type__consul_watch_event(7)
okay bestie, welcome to the cdist-type__consul_watch_event page β yes it's a section 7 manual page from the cdist fam, and yes it's lowkey iconic. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
cdist-type__consul_watch_event β the type that manages consul event watches. that's the whole job. she's focused, she's employed, she's slaying π
πΈ DESCRIPTION πΈ
so basically: this type generates and deploys watch definitions of type 'event' for a consul agent. that's it, that's the mission. π
and if you want the actual parameter documentation (like, the receipts, the lore, the full syllabus)? it lives over at http://www.consul.io/docs/agent/watches.html. go read it, i'll wait π¦
π REQUIRED PARAMETERS π
these are non-negotiable, bestie. no skipping.
handlerβ the handler to invoke when the data view updates. that's it. that's the requirement. you literally cannot do this without it. periodt.
β¨ OPTIONAL PARAMETERS β¨
the little extras, the accessories to the outfit, the garnish π§
datacenterβ can be provided to override the agent's default datacenter. so like, if you wanna be somewhere else datacenter-wise, say the word.nameβ restrict the watch to only events with the given name. a lil filter moment. narrowing the vibe check down to exactly what you want πstateβ if this watch is'present'or'absent'. Defaults to'present'. so if you want it gone, you gotta say you want it gone πtokenβ can be provided to override the agent's default ACL token. handing over a different token, no questions asked π
π«Ά EXAMPLES π«Ά
here's how the girlies actually use it. copy these exactly, no cap.
__consul_watch_event some-id \
--handler /usr/bin/my-handler.sh
and if you're feeling fancy and want to name your event:
__consul_watch_event some-id \
--name web-deploy \
--handler /usr/bin/my-handler.sh
look at that. beautiful. ate and left no crumbs π₯
π SEE ALSO π
cdist-type__consul_agent(7)β her sister, her bestie, her roommate- consul documentation at: http://www.consul.io/docs/agent/watches.html β the source material, the blueprint, the original text
π AUTHORS π
Steven Armstrong <steven-cdist--@--armstrong.cc> β the legend, the icon, the moment π
π 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, share it, remix it, just keep the license bestie π«Ά
β COPYRIGHT β
ungleich GmbH 2021
fr fr, that's the whole page. every flag, every default, every link, all of it. nothing skipped, nothing invented. iykyk π
and that's a wrap on version 7.0.0, dated Jul 31, 2022 β thanks for reading the whole thing, you're literally the main character for that πβ¨π¦
π¦ 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