Install scripts to correct folder
This commit is contained in:
parent
75d4818dc9
commit
53cee1b3cd
2 changed files with 7 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
{% from "consul/map.jinja" import consul with context %}
|
||||
{
|
||||
"services": [
|
||||
{% for service in consul.register.items() %}
|
||||
{% for service in consul.register %}
|
||||
{
|
||||
{% for key, value in service.items() %}
|
||||
{% if key == 'script' %}
|
||||
|
|
|
@ -71,6 +71,12 @@ consul_data_dir:
|
|||
- user: consul
|
||||
- group: consul
|
||||
|
||||
consul_script_dir:
|
||||
file.directory:
|
||||
- name: /opt/consul/scripts
|
||||
- user: consul
|
||||
- group: consul
|
||||
|
||||
consul_config:
|
||||
file.managed:
|
||||
- source: salt://consul/files/config.json
|
||||
|
|
Loading…
Reference in a new issue