Skip to content

Commit

Permalink
Merge pull request #52 from wilfriedroset/fix-new-lines
Browse files Browse the repository at this point in the history
Fix consul-template.cfg broken newlines
  • Loading branch information
griggheo authored Feb 15, 2021
2 parents 944415c + 5a88953 commit ff5bcde
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions templates/consul-template.cfg.j2
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
#jinja2: trim_blocks:False
consul = "{{ consul_template_consul_server }}:{{ consul_template_consul_port }}"
{% if consul_template_log_level %}
{% if consul_template_log_level -%}
log_level = "{{consul_template_log_level}}"
{% endif %}
{% if consul_template_wait is defined %}
{% endif -%}
{% if consul_template_wait is defined -%}
wait = "{{consul_template_wait}}"
{% endif %}
{% if not consul_template_use_config_dir %}
{% if consul_template_templates %}
{% for template in consul_template_templates %}
{% endif -%}
{% if not consul_template_use_config_dir -%}
{% if consul_template_templates -%}
{% for template in consul_template_templates -%}
template {
source = "{{ consul_template_home }}/templates/{{ template.name }}"
destination = "{{ template.dest }}"
{% if template.cmd is defined %}command = "{{ template.cmd }}"{% endif %}
{% if template.perms is defined %}perms = {{ template.perms }}{% endif %}
{% if template.backup is defined %}backup = {{ template.backup|lower }}{% endif %}
{% if template.wait is defined %}wait = {{ template.wait|lower }}{% endif %}
}{% endfor %}
{% endif %}
{% endif %}
}{% endfor -%}
{% endif -%}
{% endif -%}

0 comments on commit ff5bcde

Please sign in to comment.