blob: f18babb186ee2328b6a4403f2189cb58b6755c81 [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
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}
Svimbaa1b24512018-12-13 10:55:29 +010022 opencontrail_message_queue_password: guest
azvyagintsev16ca7ce2018-08-21 17:20:33 +030023 opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag}
24 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 +010025 opencontrail_analytics_container_name: opencontrail_analytics_1
26 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Marek Celouda2f29f02017-06-16 14:47:31 +020027# Temprorary fix for MOS9 packages to pin old version of kafka
28 linux:
29 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020030 kernel:
31 modules:
32 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010033 job:
34 kafka_logs_cleanup:
Anton Samoylov73f12db2018-12-12 18:34:24 +040035 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 +010036 identifier: kafka_logs_cleanup
37 hour: 0
38 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020039 opencontrail:
40 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010041 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020042 identity:
43 host: ${_param:openstack_control_address}
44 network:
45 host: ${_param:openstack_control_address}
46 collector:
Anton Samoylov9298f7d2018-10-23 23:30:41 +040047 role: ${_param:opencontrail_node_role}
Marek Celoudfa1fa512017-11-03 16:07:04 +010048 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020049 discovery:
50 host: None
Marek Celoud6d2f28c2017-12-01 15:09:47 +010051 identity:
52 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020053 analytics:
54 members:
55 - host: ${_param:opencontrail_analytics_node01_address}
56 - host: ${_param:opencontrail_analytics_node02_address}
57 - host: ${_param:opencontrail_analytics_node03_address}
58 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020059 host: ${_param:opencontrail_message_queue_address}
Svimbaa1b24512018-12-13 10:55:29 +010060 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020061 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020062 - host: ${_param:opencontrail_message_queue_node01_address}
63 - host: ${_param:opencontrail_message_queue_node02_address}
64 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020065 config:
66 members:
67 - host: ${_param:opencontrail_control_node01_address}
68 - host: ${_param:opencontrail_control_node02_address}
69 - host: ${_param:opencontrail_control_node03_address}
70 database:
Inessa Vasilevskayadca068d2018-11-19 15:26:56 +010071 analyticsdb_log_dir: ${_param:opencontrail_host_analyticsdb_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +010072 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020073 discovery:
74 host: None
75 analytics:
76 members:
77 - host: ${_param:opencontrail_analytics_node01_address}
78 - host: ${_param:opencontrail_analytics_node02_address}
79 - host: ${_param:opencontrail_analytics_node03_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +010080 docker:
81 client:
82 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010083 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +010084 status: up
85 pull: true
86 service:
87 analytics:
88 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010089 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010090 network_mode: "host"
91 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +010092 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +010093 volumes:
94 - /etc/contrail:/etc/contrail
95 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +020096 - /var/log/contrail:/var/log/contrail
97 - /var/log/journal/contrail-analytics:/var/log/journal
98 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}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100121 network_mode: "host"
122 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100123 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200124 env_file:
azvyagintsev16ca7ce2018-08-21 17:20:33 +0300125 - contrail.env