blob: 9614d61b64c1773628381523f14c83331d4937b0 [file] [log] [blame]
Marek Celouda2f29f02017-06-16 14:47:31 +02001classes:
2- service.haproxy.proxy.single
3- service.keepalived.cluster.single
4- service.opencontrail.control.analytics
5- system.haproxy.proxy.listen.opencontrail.analytics
6parameters:
7 _param:
Petr Jediný12624882017-12-04 17:06:12 +01008 opencontrail_kafka_log_cleanup_mtime: '+7'
9 opencontrail_kafka_log_cleanup_dir: '/usr/share/kafka/logs/'
Marek Celouda2f29f02017-06-16 14:47:31 +020010 opencontrail_version: 4.0
11 linux_repo_contrail_component: oc40
Marek Celoudcba1a442017-06-20 17:14:34 +020012 opencontrail_message_queue_node01_address: ${_param:openstack_message_queue_node01_address}
13 opencontrail_message_queue_node02_address: ${_param:openstack_message_queue_node02_address}
14 opencontrail_message_queue_node03_address: ${_param:openstack_message_queue_node03_address}
15 opencontrail_message_queue_address: ${_param:openstack_message_queue_address}
psvimbersky1d9f0312018-01-10 16:09:31 +010016 opencontrail_analytics_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics
17 opencontrail_analyticsdb_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010018 opencontrail_analytics_container_name: opencontrail_analytics_1
19 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Marek Celouda2f29f02017-06-16 14:47:31 +020020# Temprorary fix for MOS9 packages to pin old version of kafka
21 linux:
22 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020023 kernel:
24 modules:
25 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010026 job:
27 kafka_logs_cleanup:
28 command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
29 identifier: kafka_logs_cleanup
30 hour: 0
31 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020032 opencontrail:
33 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010034 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020035 identity:
36 host: ${_param:openstack_control_address}
37 network:
38 host: ${_param:openstack_control_address}
39 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +010040 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020041 discovery:
42 host: None
Marek Celoud6d2f28c2017-12-01 15:09:47 +010043 identity:
44 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020045 analytics:
46 members:
47 - host: ${_param:opencontrail_analytics_node01_address}
48 - host: ${_param:opencontrail_analytics_node02_address}
49 - host: ${_param:opencontrail_analytics_node03_address}
50 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020051 host: ${_param:opencontrail_message_queue_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020052 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020053 - host: ${_param:opencontrail_message_queue_node01_address}
54 - host: ${_param:opencontrail_message_queue_node02_address}
55 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020056 config:
57 members:
58 - host: ${_param:opencontrail_control_node01_address}
59 - host: ${_param:opencontrail_control_node02_address}
60 - host: ${_param:opencontrail_control_node03_address}
61 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010062 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020063 discovery:
64 host: None
65 analytics:
66 members:
67 - host: ${_param:opencontrail_analytics_node01_address}
68 - host: ${_param:opencontrail_analytics_node02_address}
69 - host: ${_param:opencontrail_analytics_node03_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +010070 docker:
71 client:
72 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010073 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +010074 status: up
75 pull: true
76 service:
77 analytics:
78 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010079 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010080 network_mode: "host"
81 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +010082 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +010083 volumes:
84 - /etc/contrail:/etc/contrail
85 - /etc/redis/redis.conf:/etc/redis/redis.conf
86 analyticsdb:
87 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010088 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010089 volumes:
90 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
91 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
92 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
93 - /etc/contrail:/etc/contrail
94 - /var/lib/analyticsdb:/var/lib/cassandra
95 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
96 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
97 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
98 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
99 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100100 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100101 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
102 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
103 network_mode: "host"
104 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100105 restart: always