blob: ed6fb156f2201af271738a3ef5b7ea8718190ff4 [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'
Marek Celouda2f29f02017-06-16 14:47:31 +020012 opencontrail_version: 4.0
13 linux_repo_contrail_component: oc40
Petr Jedinýeb7fceb2018-06-21 19:17:27 +020014 opencontrail_image_tag: latest
Marek Celoudcba1a442017-06-20 17:14:34 +020015 opencontrail_message_queue_node01_address: ${_param:openstack_message_queue_node01_address}
16 opencontrail_message_queue_node02_address: ${_param:openstack_message_queue_node02_address}
17 opencontrail_message_queue_node03_address: ${_param:openstack_message_queue_node03_address}
18 opencontrail_message_queue_address: ${_param:openstack_message_queue_address}
azvyagintsev16ca7ce2018-08-21 17:20:33 +030019 opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag}
20 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 +010021 opencontrail_analytics_container_name: opencontrail_analytics_1
22 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Marek Celouda2f29f02017-06-16 14:47:31 +020023# Temprorary fix for MOS9 packages to pin old version of kafka
24 linux:
25 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020026 kernel:
27 modules:
28 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010029 job:
30 kafka_logs_cleanup:
Anton Samoylov73f12db2018-12-12 18:34:24 +040031 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 +010032 identifier: kafka_logs_cleanup
33 hour: 0
34 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020035 opencontrail:
36 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010037 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020038 identity:
39 host: ${_param:openstack_control_address}
40 network:
41 host: ${_param:openstack_control_address}
42 collector:
Anton Samoylov9298f7d2018-10-23 23:30:41 +040043 role: ${_param:opencontrail_node_role}
Marek Celoudfa1fa512017-11-03 16:07:04 +010044 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020045 discovery:
46 host: None
Marek Celoud6d2f28c2017-12-01 15:09:47 +010047 identity:
48 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020049 analytics:
50 members:
51 - host: ${_param:opencontrail_analytics_node01_address}
52 - host: ${_param:opencontrail_analytics_node02_address}
53 - host: ${_param:opencontrail_analytics_node03_address}
54 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020055 host: ${_param:opencontrail_message_queue_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020056 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020057 - host: ${_param:opencontrail_message_queue_node01_address}
58 - host: ${_param:opencontrail_message_queue_node02_address}
59 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020060 config:
61 members:
62 - host: ${_param:opencontrail_control_node01_address}
63 - host: ${_param:opencontrail_control_node02_address}
64 - host: ${_param:opencontrail_control_node03_address}
65 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010066 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020067 discovery:
68 host: None
69 analytics:
70 members:
71 - host: ${_param:opencontrail_analytics_node01_address}
72 - host: ${_param:opencontrail_analytics_node02_address}
73 - host: ${_param:opencontrail_analytics_node03_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +010074 docker:
75 client:
76 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010077 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +010078 status: up
79 pull: true
80 service:
81 analytics:
82 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010083 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010084 network_mode: "host"
85 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +010086 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +010087 volumes:
88 - /etc/contrail:/etc/contrail
89 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +020090 - /var/log/contrail:/var/log/contrail
91 - /var/log/journal/contrail-analytics:/var/log/journal
92 env_file:
93 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +010094 analyticsdb:
95 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010096 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010097 volumes:
98 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
99 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
100 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
101 - /etc/contrail:/etc/contrail
102 - /var/lib/analyticsdb:/var/lib/cassandra
103 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
104 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
Anton Samoylov73f12db2018-12-12 18:34:24 +0400105 - ${_param:opencontrail_kafka_config_dir}/server.properties:${_param:opencontrail_kafka_config_dir}/server.properties
106 - ${_param:opencontrail_kafka_config_dir}/consumer.properties:${_param:opencontrail_kafka_config_dir}/consumer.properties
107 - ${_param:opencontrail_kafka_config_dir}/zookeeper.properties:${_param:opencontrail_kafka_config_dir}/zookeeper.properties
108 - ${_param:opencontrail_kafka_log_dir}:${_param:opencontrail_kafka_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100109 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
110 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200111 - /var/log/contrail:/var/log/contrail
112 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100113 network_mode: "host"
114 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100115 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200116 env_file:
azvyagintsev16ca7ce2018-08-21 17:20:33 +0300117 - contrail.env