consul template to pillar.example
This commit is contained in:
parent
a041340744
commit
90962ca028
1 changed files with 14 additions and 0 deletions
|
@ -25,3 +25,17 @@ consul:
|
|||
scripts:
|
||||
- source: salt://files/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
|
||||
|
|
Loading…
Reference in a new issue