CDIST-TYPE__CONSUL_WATCH_SERVICES(7)

πŸ’– NAME πŸ’–

cdist-type__consul_watch_services β€” bestie, this is the consul services watches manager, and it's giving "I got you" energy ✨


🌸 DESCRIPTION 🌸

Okay so listen. This type generates and deploys watch definitions of type 'services' for a consul agent. That's the whole job, and it does it flawlessly, no cap πŸ‘‘

Wanna know what all the params actually mean? The parameter documentation lives at http://www.consul.io/docs/agent/watches.html β€” go peek, iykyk πŸ¦‹


πŸŽ€ REQUIRED PARAMETERS πŸŽ€

  • handler β€” the handler to invoke when the data view updates. Yes this one is required, like actually required, not optional-required, so don't come to the function with nothing πŸ™ˆ

✨ OPTIONAL PARAMETERS ✨

  • datacenter β€” you can pass this to override the agent's default datacenter. Main character move if your agent's default isn't the vibe you want πŸ’…
  • state β€” whether this watch is 'present' or 'absent'. Defaults to 'present', so if you say nothing it just shows up like it owns the place 🫢
  • token β€” can be provided to override the agent's default ACL token. Use it when you need different credentials, periodt πŸ”

🌈 EXAMPLES 🌈

Look at her go:

__consul_watch_services some-id \
   --handler /usr/bin/my-key-handler.sh

That's it. That's the whole thing. Iconic, honestly 😭


πŸ‘€ SEE ALSO πŸ‘€


🫢 AUTHORS 🫢

Steven Armstrong <steven-cdist--@--armstrong.cc> β€” the legend 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.


ungleich GmbH 2021


And that's the whole page, bestie! This was version 7.0.0, dated Jul 31, brought to you by the cdist crew β€” stay slay, stay deployed, and always pass your --handler πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from