Skip to content

Commit

Permalink
Fix agents config to use list of QEDUrls
Browse files Browse the repository at this point in the history
  • Loading branch information
suizman committed Apr 1, 2019
1 parent fd1c0ad commit fea7722
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions deploy/aws/provision/templates/qed-config.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ agent:
- "{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8400"
{% endfor %}
server_urls:
{% for host in groups['name_qed-1'] %}
- "http://{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8800"
{% endfor %}
- "{% for host in groups['role_qed'] %}http://{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8800{% if not loop.last %},{% endif %}{% endfor %}"
{% for host in groups['role_storage'] %}
alerts_urls:
- "http://{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8888"
Expand All @@ -65,14 +63,10 @@ agent:
{% endfor %}
{% if 'role_auditor' in group_names %}
pub_urls:
{% for host in groups['name_qed-0'] %}
- "{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8800"
{% endfor %}
- "{% for host in groups['role_qed'] %}http://{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8800{% if not loop.last %},{% endif %}{% endfor %}"
{% endif %}
server_urls:
{% for host in groups['name_qed-1'] %}
- "http://{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8800"
{% endfor %}
- "{% for host in groups['role_qed'] %}http://{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8800{% if not loop.last %},{% endif %}{% endfor %}"
{% for host in groups['role_storage'] %}
alerts_urls:
- "http://{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8888"
Expand All @@ -90,9 +84,7 @@ agent:
- "{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8400"
{% endfor %}
server_urls:
{% for host in groups['name_qed-1'] %}
- "http://{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8800"
{% endfor %}
- "{% for host in groups['role_qed'] %}http://{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8800{% if not loop.last %},{% endif %}{% endfor %}"
{% for host in groups['role_storage'] %}
alerts_urls:
- "http://{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8888"
Expand Down

0 comments on commit fea7722

Please sign in to comment.