1CDIST-TYPE__CONSUL_WATCH_SERVICE(7) cdist CDIST-TYPE__CONSUL_WATCH_SERVICE(7)
2
3
4
6 cdist-type__consul_watch_service - Manages consul service watches
7
9 Generate and deploy watch definitions of type 'service' for a consul
10 agent. See http://www.consul.io/docs/agent/watches.html for parameter
11 documentation.
12
14 handler
15 the handler to invoke when the data view updates
16
17 service
18 the service to watch for changes
19
21 datacenter
22 can be provided to override the agent's default datacenter
23
24 state if this watch is 'present' or 'absent'. Defaults to 'present'.
25
26 token can be provided to override the agent's default ACL token
27
28 tag filter by tag
29
31 passingonly
32 specifies if only hosts passing all checks are displayed
33
35 __consul_watch_service some-id \
36 --service consul \
37 --handler /usr/bin/my-handler.sh
38
39 __consul_watch_service some-id \
40 --service redis \
41 --tag production \
42 --handler /usr/bin/my-handler.sh
43
44 __consul_watch_service some-id \
45 --service redis \
46 --tag production \
47 --passingonly \
48 --handler /usr/bin/my-handler.sh
49
51 cdist-type__consul_agent(7)
52
53 consul documentation at: <‐
54 http://www.consul.io/docs/agent/watches.html>.
55
57 Steven Armstrong <steven-cdist--@--armstrong.cc>
58
60 Copyright (C) 2015 Steven Armstrong. You can redistribute it and/or
61 modify it under the terms of the GNU General Public License as pub‐
62 lished by the Free Software Foundation, either version 3 of the
63 License, or (at your option) any later version.
64
66 ungleich GmbH 2019
67
68
69
70
716.3.0 Dec 12, 201C9DIST-TYPE__CONSUL_WATCH_SERVICE(7)