Fix cluster mode for skydive

If we use multiple skydive analyzers, we need to add this configuration.
Works with one node.

Change-Id: I9b52bf184e269d314e2af2ac80dc45557e3533af
This commit is contained in:
Kevin TIBI 2018-02-05 16:08:17 +01:00
parent 70a5099376
commit 48b5696bad
2 changed files with 7 additions and 2 deletions

View File

@ -23,7 +23,7 @@ openstack:
etcd: etcd:
servers: servers:
{% if enable_etcd == "yes" %} {% if enable_etcd | bool %}
{% for host in groups['etcd'] %} {% for host in groups['etcd'] %}
- http://{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ etcd_client_port }} - http://{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ etcd_client_port }}
{% endfor %} {% endfor %}

View File

@ -19,9 +19,14 @@ openstack:
domain_name: Default domain_name: Default
endpoint_type: internal endpoint_type: internal
analyzers:
{% for host in groups['skydive-analyzer'] %}
- {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ skydive_analyzer_port }}
{% endfor %}
etcd: etcd:
client_timeout: 100 client_timeout: 100
{% if enable_etcd == "yes" %} {% if enable_etcd | bool %}
embedded: false embedded: false
servers: servers:
{% for host in groups['etcd'] %} {% for host in groups['etcd'] %}