1CDIST-TYPE__CONSUL_SERVICE(7)        cdist       CDIST-TYPE__CONSUL_SERVICE(7)
2
3
4

NAME

6       cdist-type__consul_service - Manages consul services
7

DESCRIPTION

9       Generate  and  deploy  service  definitions  for  a  consul agent.  See
10       http://www.consul.io/docs/agent/services.html for parameter  documenta‐
11       tion.
12
13       Use either script together with interval, or use ttl.
14

REQUIRED PARAMETERS

16       None.
17

OPTIONAL PARAMETERS

19       check-interval
20              the  interval  in  which  the  script  given with --check-script
21              should be run
22
23       check-http
24              the URL to check for HTTP 200-ish status every --check-interval
25
26       check-script
27              the shell command to run every --check-interval
28
29       check-ttl
30              how long a service is considered healthy without  being  updated
31              through the HTTP interfave
32
33       id     Defaults to --name
34
35       name   The name of this service. Defaults to __object_id
36
37       port   the port at which this service can be reached
38
39       state  if this service is 'present' or 'absent'. Defaults to 'present'.
40
41       tag    a tag to add to this service. Can be specified multiple times.
42

EXAMPLES

44          __consul_service redis \
45             --tag master \
46             --tag production \
47             --port 8000 \
48             --check-script /usr/local/bin/check_redis.py \
49             --check-interval 10s
50
51          __consul_service webapp \
52             --port 80 \
53             --check-ttl 10s
54

SEE ALSO

56       cdist-type__consul_agent(7)
57

AUTHORS

59       Steven Armstrong <steven-cdist--@--armstrong.cc>
60

COPYING

62       Copyright  (C)  2015  Steven  Armstrong. You can redistribute it and/or
63       modify it under the terms of the GNU General  Public  License  as  pub‐
64       lished  by  the  Free  Software Foundation, either version 3 of the Li‐
65       cense, or (at your option) any later version.
66
68       ungleich GmbH 2021
69
70
71
72
737.0.0                            Jul 31, 2022    CDIST-TYPE__CONSUL_SERVICE(7)
Impressum