Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 1 | classes: |
Svimba | cfbe699 | 2018-06-08 13:56:05 +0200 | [diff] [blame] | 2 | - service.docker.host |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 3 | - service.haproxy.proxy.single |
| 4 | - service.keepalived.cluster.single |
| 5 | - service.opencontrail.control.analytics |
| 6 | - system.haproxy.proxy.listen.opencontrail.analytics |
| 7 | parameters: |
| 8 | _param: |
Anton Samoylov | 73f12db | 2018-12-12 18:34:24 +0400 | [diff] [blame] | 9 | opencontrail_kafka_config_dir: '/usr/share/kafka/config' |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 10 | opencontrail_kafka_log_cleanup_mtime: '+7' |
Anton Samoylov | 73f12db | 2018-12-12 18:34:24 +0400 | [diff] [blame] | 11 | opencontrail_kafka_log_dir: '/usr/share/kafka/logs' |
Inessa Vasilevskaya | dca068d | 2018-11-19 15:26:56 +0100 | [diff] [blame] | 12 | 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 Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 15 | opencontrail_version: 4.0 |
| 16 | linux_repo_contrail_component: oc40 |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 17 | opencontrail_message_queue_node01_address: ${_param:openstack_message_queue_node01_address} |
| 18 | opencontrail_message_queue_node02_address: ${_param:openstack_message_queue_node02_address} |
| 19 | opencontrail_message_queue_node03_address: ${_param:openstack_message_queue_node03_address} |
| 20 | opencontrail_message_queue_address: ${_param:openstack_message_queue_address} |
Anton Samoylov | f05f9a8 | 2019-03-28 16:38:41 +0400 | [diff] [blame] | 21 | opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_docker_image_tag} |
| 22 | opencontrail_analyticsdb_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_docker_image_tag} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 23 | opencontrail_analytics_container_name: opencontrail_analytics_1 |
| 24 | opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 25 | # Temprorary fix for MOS9 packages to pin old version of kafka |
| 26 | linux: |
| 27 | system: |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 28 | kernel: |
| 29 | modules: |
| 30 | - nf_conntrack_ipv4 |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 31 | job: |
| 32 | kafka_logs_cleanup: |
Anton Samoylov | 73f12db | 2018-12-12 18:34:24 +0400 | [diff] [blame] | 33 | command: "find ${_param:opencontrail_kafka_log_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;" |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 34 | identifier: kafka_logs_cleanup |
| 35 | hour: 0 |
| 36 | minute: 0 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 37 | opencontrail: |
| 38 | common: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 39 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 40 | identity: |
| 41 | host: ${_param:openstack_control_address} |
| 42 | network: |
| 43 | host: ${_param:openstack_control_address} |
| 44 | collector: |
Anton Samoylov | 9298f7d | 2018-10-23 23:30:41 +0400 | [diff] [blame] | 45 | role: ${_param:opencontrail_node_role} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 46 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 47 | discovery: |
| 48 | host: None |
Marek Celoud | 6d2f28c | 2017-12-01 15:09:47 +0100 | [diff] [blame] | 49 | identity: |
| 50 | host: ${_param:openstack_control_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 51 | analytics: |
| 52 | members: |
| 53 | - host: ${_param:opencontrail_analytics_node01_address} |
| 54 | - host: ${_param:opencontrail_analytics_node02_address} |
| 55 | - host: ${_param:opencontrail_analytics_node03_address} |
| 56 | message_queue: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 57 | host: ${_param:opencontrail_message_queue_address} |
Svimba | a1b2451 | 2018-12-13 10:55:29 +0100 | [diff] [blame] | 58 | password: ${_param:opencontrail_message_queue_password} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 59 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 60 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 61 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 62 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 63 | config: |
| 64 | members: |
| 65 | - host: ${_param:opencontrail_control_node01_address} |
| 66 | - host: ${_param:opencontrail_control_node02_address} |
| 67 | - host: ${_param:opencontrail_control_node03_address} |
| 68 | database: |
Inessa Vasilevskaya | dca068d | 2018-11-19 15:26:56 +0100 | [diff] [blame] | 69 | analyticsdb_log_dir: ${_param:opencontrail_host_analyticsdb_log_dir} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 70 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 71 | discovery: |
| 72 | host: None |
| 73 | analytics: |
| 74 | members: |
| 75 | - host: ${_param:opencontrail_analytics_node01_address} |
| 76 | - host: ${_param:opencontrail_analytics_node02_address} |
| 77 | - host: ${_param:opencontrail_analytics_node03_address} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 78 | docker: |
| 79 | client: |
| 80 | compose: |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 81 | opencontrail: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 82 | status: up |
| 83 | pull: true |
| 84 | service: |
| 85 | analytics: |
| 86 | image: ${_param:opencontrail_analytics_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 87 | container_name: ${_param:opencontrail_analytics_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 88 | network_mode: "host" |
| 89 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 90 | restart: always |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 91 | volumes: |
| 92 | - /etc/contrail:/etc/contrail |
| 93 | - /etc/redis/redis.conf:/etc/redis/redis.conf |
Anton Samoylov | 91dda68 | 2019-05-27 18:59:41 +0400 | [diff] [blame] | 94 | - /var/crashes:/var/crashes |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 95 | - /var/log/contrail:/var/log/contrail |
| 96 | - /var/log/journal/contrail-analytics:/var/log/journal |
Anton Samoylov | 5d5a1ca | 2019-06-19 15:02:31 +0400 | [diff] [blame^] | 97 | - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 98 | env_file: |
| 99 | - contrail.env |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 100 | analyticsdb: |
| 101 | image: ${_param:opencontrail_analyticsdb_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 102 | container_name: ${_param:opencontrail_analyticsdb_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 103 | volumes: |
| 104 | - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh |
| 105 | - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml |
| 106 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 107 | - /etc/contrail:/etc/contrail |
| 108 | - /var/lib/analyticsdb:/var/lib/cassandra |
| 109 | - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper |
| 110 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
Anton Samoylov | 73f12db | 2018-12-12 18:34:24 +0400 | [diff] [blame] | 111 | - ${_param:opencontrail_kafka_config_dir}/server.properties:${_param:opencontrail_kafka_config_dir}/server.properties |
| 112 | - ${_param:opencontrail_kafka_config_dir}/consumer.properties:${_param:opencontrail_kafka_config_dir}/consumer.properties |
| 113 | - ${_param:opencontrail_kafka_config_dir}/zookeeper.properties:${_param:opencontrail_kafka_config_dir}/zookeeper.properties |
| 114 | - ${_param:opencontrail_kafka_log_dir}:${_param:opencontrail_kafka_log_dir} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 115 | - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg |
| 116 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 117 | - /var/log/contrail:/var/log/contrail |
| 118 | - /var/log/journal/contrail-analyticsdb:/var/log/journal |
Inessa Vasilevskaya | dca068d | 2018-11-19 15:26:56 +0100 | [diff] [blame] | 119 | - ${_param:opencontrail_host_analyticsdb_log_dir}/cassandra:${_param:opencontrail_cassandra_log_dir} |
| 120 | - ${_param:opencontrail_host_analyticsdb_log_dir}/zookeeper:${_param:opencontrail_zookeeper_log_dir} |
Anton Samoylov | 5d5a1ca | 2019-06-19 15:02:31 +0400 | [diff] [blame^] | 121 | - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 122 | network_mode: "host" |
| 123 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 124 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 125 | env_file: |
azvyagintsev | 16ca7ce | 2018-08-21 17:20:33 +0300 | [diff] [blame] | 126 | - contrail.env |