Skip to content

Commit

Permalink
Remove jinja whitespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
iknite committed Feb 28, 2019
1 parent f30ab62 commit b3a5ceb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions deploy/aws/provision/templates/qed-config.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@
---
api_key: "terraform_qed"
path: "/var/qed/"
{%- if 'role_qed' in group_names %}
{% if 'role_qed' in group_names %}
server:
node_id: "{{ ansible_hostname }}"
addr:
http: ":8800"
mgmt: ":8700"
raft: "{{ ansible_eth0.ipv4.address }}:8500"
gossip: "{{ ansible_eth0.ipv4.address }}:8400"
{%- if groups.role_qed.index(inventory_hostname) != 0 %}
{% if groups.role_qed.index(inventory_hostname) != 0 %}
raft_join:
{%- for host in groups['name_qed-0'] %}
{% for host in groups['name_qed-0'] %}
- "{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8700"
gossip_join:
- "{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8400"
{%- endfor %}
{%- endif %}
{%- endif %}
{%- if 'role_monitor' in group_names %}
{% endfor %}
{% endif %}
{% endif %}
{% if 'role_monitor' in group_names %}
agent:
node: "monitor"
bind: "{{ ansible_eth0.ipv4.address }}:8200"
Expand Down

0 comments on commit b3a5ceb

Please sign in to comment.