Skip to content

Commit

Permalink
Analytics services point to analyticsdb zookeeper
Browse files Browse the repository at this point in the history
Provision analytics services to use analyticsdb zookeeper on port 2182

Change-Id: Iadbb79990be15f581298effcebd2dcfdda6cdb9a
Closes-Bug: #1773091
  • Loading branch information
Santosh Gupta committed Jun 26, 2018
1 parent 059b5fb commit efe898d
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion playbooks/roles/contrail/analytics/tasks/alarm-gen.yml
Expand Up @@ -13,7 +13,7 @@
log_level: "{{ alarmgen_log_level }}"
log_local: "{{ log_local }}"
kafka_broker_list: "{{ kafka_brokers_with_port }}"
zk_list: "{{ zk_servers_with_port_space_delim }}"
zk_list: "{{ analyticsdb_zk_servers_with_port_space_delim }}"
partitions: "{{ anlaytics_uve_partition_count }}"
http_server_port: "{{ alarmgen_introspect_port }}"
collectors: "{{ analytics_collectors_with_port }}"
Expand Down
2 changes: 1 addition & 1 deletion playbooks/roles/contrail/analytics/tasks/api.yml
Expand Up @@ -20,7 +20,7 @@
rest_api_ip: "{{ analytics_api_listen_address }}"
aaa_mode: "{{ analytics_api_aaa_mode_orig }}"
collectors: "{{ analytics_collectors_with_port }}"
zk_list: "{{ zk_servers_with_port_space_delim }}"
zk_list: "{{ analyticsdb_zk_servers_with_port_space_delim }}"
REDIS:
redis_uve_list: "{{ analytics_redis_servers_with_port }}"
redis_query_port: "{{ analytics_redis_port }}"
Expand Down
2 changes: 1 addition & 1 deletion playbooks/roles/contrail/analytics/tasks/collector.yml
Expand Up @@ -9,7 +9,7 @@
with_inidata:
DEFAULT:
cassandra_server_list: "{{ analyticsdb_servers_with_cql_port }}"
zookeeper_server_list: "{{ zk_servers_with_port }}"
zookeeper_server_list: "{{ analyticsdb_zk_servers_with_port }}"
kafka_broker_list: "{{ kafka_brokers_with_port }}"
hostip: "{{ my_analytics_ip }}"
log_file: "{{ analytics_collector_log }}"
Expand Down
Expand Up @@ -8,7 +8,7 @@
create: yes
with_inidata:
DEFAULTS:
zookeeper: "{{ zk_servers_with_port }}"
zookeeper: "{{ analyticsdb_zk_servers_with_port }}"
log_file: "{{ analytics_snmp_collector_log }}"
log_level: "{{ analytics_snmp_collector_log_level }}"
log_local: "{{ log_local }}"
Expand Down
2 changes: 1 addition & 1 deletion playbooks/roles/contrail/analytics/tasks/topology.yml
Expand Up @@ -8,7 +8,7 @@
create: yes
with_inidata:
DEFAULT:
zookeeper: "{{ zk_servers_with_port }}"
zookeeper: "{{ analyticsdb_zk_servers_with_port }}"
log_file: "{{ analytics_topology_log }}"
log_level: "{{ analytics_topology_log_level }}"
log_local: "{{ log_local }}"
Expand Down
4 changes: 0 additions & 4 deletions playbooks/roles/contrail/analyticsdb/vars/main.yml

This file was deleted.

4 changes: 4 additions & 0 deletions playbooks/roles/contrail/common/vars/main.yml
Expand Up @@ -11,6 +11,10 @@ configdb_servers_with_cql_port: "{{ configdb_server_list | map('regex_replace',
zk_servers_with_port: "{{ zk_server_list | map('regex_replace', '^(.*)$', '\\1:' + zk_port|string) | join(',') }}"
zk_servers_with_port_space_delim: "{{ zk_servers_with_port | regex_replace(',', ' ') }}"

# This will construct a string with comma delimited list of all analyticsdb zookeeper server and port in form of "ip1:port, ip2:port"
analyticsdb_zk_servers_with_port: "{{ analyticsdb_zk_server_list | map('regex_replace', '^(.*)$', '\\1:' + analyticsdb_zk_port|string) | join(',') }}"
analyticsdb_zk_servers_with_port_space_delim: "{{ analyticsdb_zk_servers_with_port | regex_replace(',', ' ') }}"

# This will construct a string with comma delimited list of all rabbitmq server and port in form of "ip1:port, ip2:port"
rabbitmq_servers_with_port: "{{ rabbitmq_server_list | map('regex_replace', '^(.*)$', '\\1:' + contrail_rabbitmq_port|string) | join(',') }}"
rabbitmq_servers_with_port_space_delim: "{{ rabbitmq_servers_with_port | regex_replace(',', ' ') }}"
Expand Down

0 comments on commit efe898d

Please sign in to comment.