From d2b4e305c544e59bdebda38ec09f747e98aadbef Mon Sep 17 00:00:00 2001 From: Martin Evgeniev Date: Fri, 29 Mar 2019 13:28:18 +0100 Subject: [PATCH] Add auditor specific config in deploy on AWS --- deploy/aws/provision/templates/qed-config.yml.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deploy/aws/provision/templates/qed-config.yml.j2 b/deploy/aws/provision/templates/qed-config.yml.j2 index 6986fd157..cb9b41d5b 100644 --- a/deploy/aws/provision/templates/qed-config.yml.j2 +++ b/deploy/aws/provision/templates/qed-config.yml.j2 @@ -63,6 +63,12 @@ agent: {% for host in groups['name_qed-0'] %} - "{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8400" {% endfor %} +{% if 'role_auditor' in group_names %} + QEDUrls: +{% for host in groups['name_qed-0'] %} + - "{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8800" +{% endfor %} +{% endif %} server_urls: {% for host in groups['name_qed-1'] %} - "http://{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8800"