/
topology.yml
50 lines (49 loc) · 1.78 KB
/
topology.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
- name: Configure contrail-topology.conf
ini_file:
dest: "{{ analytics_topology_conf }}"
section: "{{ item.section }}"
option: "{{ item.option }}"
value: "{{ item.value }}"
create: yes
with_inidata:
DEFAULT:
zookeeper: "{{ analyticsdb_zk_servers_with_port }}"
log_file: "{{ analytics_topology_log }}"
log_level: "{{ analytics_topology_log_level }}"
log_local: "{{ log_local }}"
http_server_port: "{{ analytics_topology_introspect_port }}"
collectors: "{{ analytics_collectors_with_port }}"
API_SERVER:
api_server_list: "{{ api_servers_with_port }}"
api_server_use_ssl: "{{ api_server_use_ssl }}"
SANDESH:
sandesh_ssl_enable: "{{ sandesh_ssl_enable }}"
introspect_ssl_enable: "{{ introspect_ssl_enable }}"
sandesh_keyfile: "{{ sandesh_keyfile }}"
sandesh_certfile: "{{ sandesh_certfile }}"
sandesh_ca_cert: "{{ sandesh_ca_cert }}"
CONFIGDB:
rabbitmq_server_list: "{{ rabbitmq_servers_with_port_space_delim }}"
rabbitmq_vhost: "{{ rabbitmq_vhost }}"
rabbitmq_user: "{{ rabbitmq_user }}"
rabbitmq_password: "{{ rabbitmq_password }}"
config_db_server_list: "{{ configdb_servers_with_port }}"
notify:
- restart topology supervisord
- restart topology systemd
- name: Configure configdb's cassandra user and password when provided
ini_file:
dest: "{{ analytics_topology_conf }}"
section: "{{ item.section }}"
option: "{{ item.option }}"
value: "{{ item.value }}"
create: yes
with_inidata:
CONFIGDB:
config_db_username: "{{ configdb_cassandra_user }}"
config_db_password: "{{ configdb_cassandra_password }}"
notify:
- restart topology supervisord
- restart topology systemd
when: configdb_cassandra_user != ''