Skip to content

Commit

Permalink
Fix wrong indentation in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
iknite committed Feb 28, 2019
1 parent ba181bf commit 8196100
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions deploy/aws/provision/templates/qed-config.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@
---
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:
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 %}
raft_join:
{% for host in groups['name_qed-0'] %}
- "{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8700"
{%- if groups.role_qed.index(inventory_hostname) != 0 %}
gossip_join:
- "{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8400"
{% endfor %}
{% endif %}
{% endif %}
- "{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8400"
raft_join:
{%- for host in groups['name_qed-0'] %}
- "{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8700"
{%- endfor %}
{%- endif %}
{%- endif %}
{% if 'role_monitor' in group_names %}
agent:
node: "monitor"
Expand Down

0 comments on commit 8196100

Please sign in to comment.