CDIST-TYPE__CONSUL_SERVICE(7)

πŸ’– cdist-type__consul_service πŸ’–

okay so bestie, welcome to cdist-type__consul_service (that's the CDIST-TYPE__CONSUL_SERVICE(7) page, section 7 of the cdist manual, iykyk) β€” the little type that handles your consul services for you πŸŽ€


✨ NAME ✨

cdist-type__consul_service β€” literally just: manages consul services πŸ’…


🌸 DESCRIPTION 🌸

It generates and deploys service definitions for a consul agent. slay. πŸ¦‹

For the actual parameter documentation, go peek at http://www.consul.io/docs/agent/services.html β€” that's where the real tea is.

⚠️ important vibe check: use either script together with interval, or use ttl. not both, bestie. pick a lane. πŸ’€

🫢 REQUIRED PARAMETERS 🫢

None. zero. nada. you're free πŸ’–


πŸ‘‘ OPTIONAL PARAMETERS πŸ‘‘

  • check-interval β€” the interval in which the script given with --check-script should be run ⏰
  • check-http β€” the URL to check for HTTP 200-ish status every --check-interval 🌐
  • check-script β€” the shell command to run every --check-interval πŸ“œ
  • check-ttl β€” how long a service is considered healthy without being updated through the HTTP interfave 🩺 (yes, that's exactly how the original spells it, we don't touch the sacred texts)
  • id β€” defaults to --name 🏷️
  • name β€” the name of this service. defaults to __object_id ✨
  • port β€” the port at which this service can be reached πŸ”Œ
  • state β€” if this service is 'present' or 'absent'. defaults to 'present'. πŸ‘»
  • tag β€” a tag to add to this service. can be specified multiple times. stack 'em like bracelets πŸ”₯

🌈 EXAMPLES 🌈

the main character moments, fr fr:

__consul_service redis \
   --tag master \
   --tag production \
   --port 8000 \
   --check-script /usr/local/bin/check_redis.py \
   --check-interval 10s
__consul_service webapp \
   --port 80 \
   --check-ttl 10s

ate. no notes. πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹


πŸ’œ AUTHORS πŸ’œ

Steven Armstrong <steven-cdist--@--armstrong.cc> β€” iconic, honestly πŸ‘‘


πŸŽ€ 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.

like, go forth and share, legally πŸ’–


ungleich GmbH 2021 🌸


and that's the whole page, babe β€” this was version 7.0.0 from Jul 31, 2022, brought to you by cdist. periodt. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from