consul template to pillar.example

This commit is contained in:
George Robinson 2016-04-22 22:33:38 +01:00
parent a041340744
commit 90962ca028

View file

@ -25,3 +25,17 @@ consul:
scripts: scripts:
- source: salt://files/consul/check_redis.py - source: salt://files/consul/check_redis.py
name: /usr/local/share/consul/check_redis.py name: /usr/local/share/consul/check_redis.py
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