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 🌈


πŸ’œ 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. πŸ’…)


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