formula-consul/pillar.example

42 lines
867 B
Text
Raw Normal View History

2015-10-07 14:18:22 -04:00
consul:
service: true
2015-10-22 15:29:19 -04:00
2015-10-07 15:02:53 -04:00
config:
server: true
bind_addr: 0.0.0.0
2015-10-22 15:29:19 -04:00
2015-10-08 08:26:43 -04:00
enable_debug: true
2015-10-22 15:29:19 -04:00
2015-10-08 07:49:10 -04:00
datacenter: eu
2015-10-22 15:29:19 -04:00
2015-10-08 08:26:43 -04:00
encrypt: "RIxqpNlOXqtr/j4BgvIMEw=="
2015-10-22 15:29:19 -04:00
2015-10-08 08:26:43 -04:00
bootstrap_expect: 3
retry_interval: 15s
retry_join:
- 1.1.1.1
- 2.2.2.2
2015-10-22 15:29:19 -04:00
2015-10-09 17:39:53 -04:00
register:
- name: Redis
checks:
2015-10-22 14:04:02 -04:00
- script: /usr/local/share/consul/check_redis.py
2015-10-09 17:39:53 -04:00
interval: 10s
2015-10-09 18:13:15 -04:00
scripts:
- source: salt://files/consul/check_redis.py
2015-10-22 14:04:02 -04:00
name: /usr/local/share/consul/check_redis.py
2016-04-22 17:33:38 -04:00
consul_template:
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