Install scripts to correct folder

This commit is contained in:
Bahadır Kandemir 2015-10-10 00:46:19 +03:00
parent 75d4818dc9
commit 53cee1b3cd
2 changed files with 7 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{% from "consul/map.jinja" import consul with context %} {% from "consul/map.jinja" import consul with context %}
{ {
"services": [ "services": [
{% for service in consul.register.items() %} {% for service in consul.register %}
{ {
{% for key, value in service.items() %} {% for key, value in service.items() %}
{% if key == 'script' %} {% if key == 'script' %}

View file

@ -71,6 +71,12 @@ consul_data_dir:
- user: consul - user: consul
- group: consul - group: consul
consul_script_dir:
file.directory:
- name: /opt/consul/scripts
- user: consul
- group: consul
consul_config: consul_config:
file.managed: file.managed:
- source: salt://consul/files/config.json - source: salt://consul/files/config.json