Merge pull request #20 from habitissimo/script-context
add context to script templates
This commit is contained in:
commit
eabddbd6a7
2 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,7 @@ consul-script-install-{{ loop.index }}:
|
|||
- source: {{ script.source }}
|
||||
- name: {{ script.name }}
|
||||
- template: jinja
|
||||
- context: {{ script.get('context', {}) | yaml }}
|
||||
- user: consul
|
||||
- group: consul
|
||||
- mode: 0755
|
||||
|
|
|
@ -26,6 +26,8 @@ consul:
|
|||
scripts:
|
||||
- source: salt://files/consul/check_redis.py
|
||||
name: /usr/local/share/consul/check_redis.py
|
||||
context:
|
||||
port: 6379
|
||||
|
||||
consul_template:
|
||||
# Start consul-template daemon and enable it at boot time
|
||||
|
|
Loading…
Reference in a new issue