Files
kolla-ansible/ansible/roles/skydive/templates/skydive-agent.conf.j2
Radosław Piliszek 72b63dfee7 Further Keystone-related cleanups
Per comments on [1].

[1] https://review.opendev.org/c/openstack/kolla-ansible/+/843727

Change-Id: I60162b54bc06e158534d29311d4474b34750c64d
2022-06-20 08:40:03 +00:00

71 lines
1.7 KiB
Django/Jinja

### Skydive agent config file
auth:
analyzer_username: {{ openstack_auth['username'] }}
analyzer_password: {{ openstack_auth['password'] }}
logging:
level: INFO
backends:
- file
file:
path: /var/log/kolla/skydive/skydive-agent.log
etcd:
servers:
{% if enable_etcd | bool %}
{% for host in groups['etcd'] %}
- {{ etcd_protocol }}://{{ 'api' | kolla_address(host) | put_address_in_context('url') }}:{{ etcd_client_port }}
{% endfor %}
{% else %}
{% for host in groups['skydive-analyzer'] %}
- {{ etcd_protocol }}://{{ 'api' | kolla_address(host) | put_address_in_context('url') }}:{{ etcd_client_port }}
{% endfor %}
{% endif %}
analyzers:
{% for host in groups['skydive-analyzer'] %}
- {{ 'api' | kolla_address(host) | put_address_in_context('url') }}:{{ skydive_analyzer_port }}
{% endfor %}
agent:
listen: {{ 'api' | kolla_address | put_address_in_context('url') }}:{{ skydive_agents_port }}
flow:
probes:
- gopacket
{% if neutron_plugin_agent in ['openvswitch'] %}
- ovssflow
{% endif %}
topology:
probes:
- netlink
- netns
- neutron
{% if neutron_plugin_agent in ['openvswitch'] %}
- ovsdb
{% endif %}
### TODO migrate from tenant_name to system_scope when supported in skydive
neutron:
auth_url: {{ keystone_internal_url }}
username: {{ openstack_auth['username'] }}
password: {{ openstack_auth['password'] }}
tenant_name: {{ skydive_admin_tenant_name }}
region_name: {{ openstack_region_name }}
domain_name: Default
endpoint_type: internal
netns:
run_path: /host/run
flow:
expire: 600
update: 60
{% if neutron_plugin_agent in ['openvswitch'] %}
ovs:
ovsdb: tcp://127.0.0.1:{{ ovsdb_port }}
oflow:
enable: true
{% endif %}