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:


πŸ’œ 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 πŸ’€

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