blob: d60ed8b8dc82a5060bcd4ab98f9d3f63bf607e4e [file] [log] [blame]
Marek Celouda2f29f02017-06-16 14:47:31 +02001classes:
Svimbacfbe6992018-06-08 13:56:05 +02002- service.docker.host
Marek Celouda2f29f02017-06-16 14:47:31 +02003- service.haproxy.proxy.single
4- service.keepalived.cluster.single
5- service.opencontrail.control.analytics
6- system.haproxy.proxy.listen.opencontrail.analytics
7parameters:
8 _param:
Anton Samoylov73f12db2018-12-12 18:34:24 +04009 opencontrail_kafka_config_dir: '/usr/share/kafka/config'
Petr Jediný12624882017-12-04 17:06:12 +010010 opencontrail_kafka_log_cleanup_mtime: '+7'
Anton Samoylov73f12db2018-12-12 18:34:24 +040011 opencontrail_kafka_log_dir: '/usr/share/kafka/logs'
Inessa Vasilevskayabd0a0dd2018-11-19 15:26:56 +010012 opencontrail_host_analyticsdb_log_dir: '/var/log/analyticsdb'
13 opencontrail_cassandra_log_dir: '/var/log/cassandra'
14 opencontrail_zookeeper_log_dir: '/var/log/zookeeper'
Marek Celouda2f29f02017-06-16 14:47:31 +020015 opencontrail_version: 4.0
16 linux_repo_contrail_component: oc40
Petr Jedinýeb7fceb2018-06-21 19:17:27 +020017 opencontrail_image_tag: latest
Marek Celoudcba1a442017-06-20 17:14:34 +020018 opencontrail_message_queue_node01_address: ${_param:openstack_message_queue_node01_address}
19 opencontrail_message_queue_node02_address: ${_param:openstack_message_queue_node02_address}
20 opencontrail_message_queue_node03_address: ${_param:openstack_message_queue_node03_address}
21 opencontrail_message_queue_address: ${_param:openstack_message_queue_address}
azvyagintsev16ca7ce2018-08-21 17:20:33 +030022 opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag}
23 opencontrail_analyticsdb_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_image_tag}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010024 opencontrail_analytics_container_name: opencontrail_analytics_1
25 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Marek Celouda2f29f02017-06-16 14:47:31 +020026# Temprorary fix for MOS9 packages to pin old version of kafka
27 linux:
28 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020029 kernel:
30 modules:
31 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010032 job:
33 kafka_logs_cleanup:
Anton Samoylov73f12db2018-12-12 18:34:24 +040034 command: "find ${_param:opencontrail_kafka_log_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
Petr Jediný12624882017-12-04 17:06:12 +010035 identifier: kafka_logs_cleanup
36 hour: 0
37 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020038 opencontrail:
39 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010040 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020041 identity:
42 host: ${_param:openstack_control_address}
43 network:
44 host: ${_param:openstack_control_address}
45 collector:
Anton Samoylov9298f7d2018-10-23 23:30:41 +040046 role: ${_param:opencontrail_node_role}
Marek Celoudfa1fa512017-11-03 16:07:04 +010047 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020048 discovery:
49 host: None
Marek Celoud6d2f28c2017-12-01 15:09:47 +010050 identity:
51 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020052 analytics:
53 members:
54 - host: ${_param:opencontrail_analytics_node01_address}
55 - host: ${_param:opencontrail_analytics_node02_address}
56 - host: ${_param:opencontrail_analytics_node03_address}
57 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020058 host: ${_param:opencontrail_message_queue_address}
Svimbaa1b24512018-12-13 10:55:29 +010059 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020060 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020061 - host: ${_param:opencontrail_message_queue_node01_address}
62 - host: ${_param:opencontrail_message_queue_node02_address}
63 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020064 config:
65 members:
66 - host: ${_param:opencontrail_control_node01_address}
67 - host: ${_param:opencontrail_control_node02_address}
68 - host: ${_param:opencontrail_control_node03_address}
69 database:
Inessa Vasilevskayabd0a0dd2018-11-19 15:26:56 +010070 analyticsdb_log_dir: ${_param:opencontrail_host_analyticsdb_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +010071 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020072 discovery:
73 host: None
74 analytics:
75 members:
76 - host: ${_param:opencontrail_analytics_node01_address}
77 - host: ${_param:opencontrail_analytics_node02_address}
78 - host: ${_param:opencontrail_analytics_node03_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +010079 docker:
80 client:
81 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010082 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +010083 status: up
84 pull: true
85 service:
86 analytics:
87 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010088 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010089 network_mode: "host"
90 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +010091 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +010092 volumes:
93 - /etc/contrail:/etc/contrail
94 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +020095 - /var/log/contrail:/var/log/contrail
96 - /var/log/journal/contrail-analytics:/var/log/journal
97 env_file:
98 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +010099 analyticsdb:
100 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100101 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100102 volumes:
103 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
104 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
105 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
106 - /etc/contrail:/etc/contrail
107 - /var/lib/analyticsdb:/var/lib/cassandra
108 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
109 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
Anton Samoylov73f12db2018-12-12 18:34:24 +0400110 - ${_param:opencontrail_kafka_config_dir}/server.properties:${_param:opencontrail_kafka_config_dir}/server.properties
111 - ${_param:opencontrail_kafka_config_dir}/consumer.properties:${_param:opencontrail_kafka_config_dir}/consumer.properties
112 - ${_param:opencontrail_kafka_config_dir}/zookeeper.properties:${_param:opencontrail_kafka_config_dir}/zookeeper.properties
113 - ${_param:opencontrail_kafka_log_dir}:${_param:opencontrail_kafka_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100114 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
115 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200116 - /var/log/contrail:/var/log/contrail
117 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Inessa Vasilevskayabd0a0dd2018-11-19 15:26:56 +0100118 - ${_param:opencontrail_host_analyticsdb_log_dir}/cassandra:${_param:opencontrail_cassandra_log_dir}
119 - ${_param:opencontrail_host_analyticsdb_log_dir}/zookeeper:${_param:opencontrail_zookeeper_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100120 network_mode: "host"
121 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100122 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200123 env_file:
azvyagintsev16ca7ce2018-08-21 17:20:33 +0300124 - contrail.env