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 eitherscripttogether withinterval, or usettl. 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-scriptshould 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 π¦
cdist-type__consul_agent(7)β go read that one too, bestie π«Ά
π 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 π
β COPYRIGHT β
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
- 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