blob: 5dd72d77596a0e462a7afdca8f5cdbacde2c40d9 (
plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
---
#- hosts: collector
# sudo: yes
# tasks:
- name: "enable supervisor analytics"
file:
path: "/etc/init/supervisor-analytics.override"
state: "absent"
- name: "redis-setup"
include: -redis-setup.yml
- name: "node-common"
include: -node-common.yml
- name: "fix up contrail collector config"
template:
src: "provision/contrail-collector-conf.j2"
dest: "/etc/contrail/contrail-collector.conf"
- name: "fix up contrail query engine config"
template:
src: "provision/contrail-query-engine-conf.j2"
dest: "/etc/contrail/contrail-query-engine.conf"
- name: "fix up contrail analytics api config"
template:
src: "provision/contrail-analytics-api-conf.j2"
dest: "/etc/contrail/contrail-analytics-api.conf"
- name: "modify contrail analytics nodemgr config"
ini_file:
dest: "/etc/contrail/contrail-analytics-nodemgr.conf"
section: "DISCOVERY"
option: "server"
value: "{{ contrail_haproxy_address }}"
- name: "fix up contrail keystone auth config"
template:
src: "provision/contrail-keystone-auth-conf.j2"
dest: "/etc/contrail/contrail-keystone-auth.conf"
force: no
- name: "delete contrail alarm gen supervisord config file"
file:
dest: "/etc/contrail/supervisord_analytics_files/contrail-alarm-gen.ini"
state: "absent"
- name: "modify contrail snmp collector config file"
ini_file:
dest: "/etc/contrail/contrail-snmp-collector.conf"
section: "{{ item.section }}"
option: "{{ item.option }}"
value: "{{ item.value }}"
with_items:
- { section: "DEFAULTS", option: "zookeeper", value: "{{ contrail_address }}:2128" }
- { section: "DISCOVERY", option: "disc_server_ip", value: "{{ contrail_haproxy_address }}" }
- { section: "DISCOVERY", option: "disc_server_port", value: "5998" }
- name: "modify contrail snmp collector ini file"
ini_file:
dest: "/etc/contrail/supervisord_analytics_files/contrail-snmp-collector.ini"
section: "program:contrail-snmp-collector"
option: "command"
value: "/usr/bin/contrail-snmp-collector --conf_file /etc/contrail/contrail-snmp-collector.conf --conf_file /etc/contrail/contrail-keystone-auth.conf"
- name: "modify contrail topology config file"
ini_file:
dest: "/etc/contrail/contrail-topology.conf"
section: "DEFAULTS"
option: "zookeeper"
value: "{{ contrail_address }}"
- name: "modify contrail topology ini file"
ini_file:
dest: "/etc/contrail/supervisord_analytics_files/contrail-topology.ini"
section: "program:contrail-topology"
option: "command"
value: "/usr/bin/contrail-topology --conf_file /etc/contrail/contrail-topology.conf"
- name: "restart supervisor analytics"
service:
name: "supervisor-analytics"
state: "restarted"
|