blob: 91868d351d5f745fbf84f2c6071b78d3b003f34e [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 Vasilevskayadca068d2018-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
Marek Celoudcba1a442017-06-20 17:14:34 +020017 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 Samoylovf05f9a82019-03-28 16:38:41 +040021 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 Svimbersky38f216c2017-12-20 10:46:35 +010023 opencontrail_analytics_container_name: opencontrail_analytics_1
24 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Marek Celouda2f29f02017-06-16 14:47:31 +020025# Temprorary fix for MOS9 packages to pin old version of kafka
26 linux:
27 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020028 kernel:
29 modules:
30 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010031 job:
32 kafka_logs_cleanup:
Anton Samoylov73f12db2018-12-12 18:34:24 +040033 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 +010034 identifier: kafka_logs_cleanup
35 hour: 0
36 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020037 opencontrail:
38 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010039 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020040 identity:
41 host: ${_param:openstack_control_address}
42 network:
43 host: ${_param:openstack_control_address}
44 collector:
Anton Samoylov9298f7d2018-10-23 23:30:41 +040045 role: ${_param:opencontrail_node_role}
Marek Celoudfa1fa512017-11-03 16:07:04 +010046 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020047 discovery:
48 host: None
Marek Celoud6d2f28c2017-12-01 15:09:47 +010049 identity:
50 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020051 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 Celoudcba1a442017-06-20 17:14:34 +020057 host: ${_param:opencontrail_message_queue_address}
Svimbaa1b24512018-12-13 10:55:29 +010058 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020059 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020060 - host: ${_param:opencontrail_message_queue_node01_address}
61 - host: ${_param:opencontrail_message_queue_node02_address}
62 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020063 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 Vasilevskayadca068d2018-11-19 15:26:56 +010069 analyticsdb_log_dir: ${_param:opencontrail_host_analyticsdb_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +010070 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020071 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 Celoudfa1fa512017-11-03 16:07:04 +010078 docker:
79 client:
80 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010081 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +010082 status: up
83 pull: true
84 service:
85 analytics:
86 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010087 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010088 network_mode: "host"
89 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +010090 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +010091 volumes:
92 - /etc/contrail:/etc/contrail
93 - /etc/redis/redis.conf:/etc/redis/redis.conf
Anton Samoylov91dda682019-05-27 18:59:41 +040094 - /var/crashes:/var/crashes
Svimbad3e59382018-07-03 12:25:19 +020095 - /var/log/contrail:/var/log/contrail
96 - /var/log/journal/contrail-analytics:/var/log/journal
Anton Samoylov5d5a1ca2019-06-19 15:02:31 +040097 - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro
Svimbad3e59382018-07-03 12:25:19 +020098 env_file:
99 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100100 analyticsdb:
101 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100102 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100103 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 Samoylov73f12db2018-12-12 18:34:24 +0400111 - ${_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 Celoudfa1fa512017-11-03 16:07:04 +0100115 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
116 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200117 - /var/log/contrail:/var/log/contrail
118 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Inessa Vasilevskayadca068d2018-11-19 15:26:56 +0100119 - ${_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 Samoylov5d5a1ca2019-06-19 15:02:31 +0400121 - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro
Marek Celoudfa1fa512017-11-03 16:07:04 +0100122 network_mode: "host"
123 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100124 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200125 env_file:
azvyagintsev16ca7ce2018-08-21 17:20:33 +0300126 - contrail.env