forked from saltstack-formulas/consul-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pillar.example
48 lines (38 loc) · 1.02 KB
/
pillar.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
consul:
# Start Consul agent service and enable it at boot time
service: True
startup_params: --client "127.0.0.1"
config:
server: True
bind_addr: 0.0.0.0
enable_debug: True
datacenter: eu
encrypt: "RIxqpNlOXqtr/j4BgvIMEw=="
bootstrap_expect: 3
retry_interval: 15s
retry_join:
- 1.1.1.1
- 2.2.2.2
register:
- name: Redis
checks:
- script: /usr/local/share/consul/check_redis.py
interval: 10s
scripts:
- source: salt://files/consul/check_redis.py
name: /usr/local/share/consul/check_redis.py
consul_template:
# Start consul-template daemon and enable it at boot time
service: True
config:
consul: 127.0.0.1:8500
log_level: info
tmpl:
- name: example.com
source: salt://files/example.com.ctmpl
config:
template:
source: /etc/consul-template/tmpl-source/example.com.ctmpl
destination: /etc/nginx/sites-enabled/example.com
command: systemctl restart nginx
# vim: ft=yaml