blob: cd7b8cc53266e5aecb1866187a30acc97f019c14 [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:
Petr Jediný12624882017-12-04 17:06:12 +01009 opencontrail_kafka_log_cleanup_mtime: '+7'
10 opencontrail_kafka_log_cleanup_dir: '/usr/share/kafka/logs/'
Marek Celouda2f29f02017-06-16 14:47:31 +020011 opencontrail_version: 4.0
12 linux_repo_contrail_component: oc40
Petr Jedinýeb7fceb2018-06-21 19:17:27 +020013 opencontrail_image_tag: latest
Marek Celoudcba1a442017-06-20 17:14:34 +020014 opencontrail_message_queue_node01_address: ${_param:openstack_message_queue_node01_address}
15 opencontrail_message_queue_node02_address: ${_param:openstack_message_queue_node02_address}
16 opencontrail_message_queue_node03_address: ${_param:openstack_message_queue_node03_address}
17 opencontrail_message_queue_address: ${_param:openstack_message_queue_address}
Petr Jedinýeb7fceb2018-06-21 19:17:27 +020018 opencontrail_analytics_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag}
19 opencontrail_analyticsdb_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_image_tag}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010020 opencontrail_analytics_container_name: opencontrail_analytics_1
21 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Marek Celouda2f29f02017-06-16 14:47:31 +020022# Temprorary fix for MOS9 packages to pin old version of kafka
23 linux:
24 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020025 kernel:
26 modules:
27 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010028 job:
29 kafka_logs_cleanup:
30 command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
31 identifier: kafka_logs_cleanup
32 hour: 0
33 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020034 opencontrail:
35 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010036 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020037 identity:
38 host: ${_param:openstack_control_address}
39 network:
40 host: ${_param:openstack_control_address}
41 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +010042 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020043 discovery:
44 host: None
Marek Celoud6d2f28c2017-12-01 15:09:47 +010045 identity:
46 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020047 analytics:
48 members:
49 - host: ${_param:opencontrail_analytics_node01_address}
50 - host: ${_param:opencontrail_analytics_node02_address}
51 - host: ${_param:opencontrail_analytics_node03_address}
52 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020053 host: ${_param:opencontrail_message_queue_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020054 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020055 - host: ${_param:opencontrail_message_queue_node01_address}
56 - host: ${_param:opencontrail_message_queue_node02_address}
57 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020058 config:
59 members:
60 - host: ${_param:opencontrail_control_node01_address}
61 - host: ${_param:opencontrail_control_node02_address}
62 - host: ${_param:opencontrail_control_node03_address}
63 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010064 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020065 discovery:
66 host: None
67 analytics:
68 members:
69 - host: ${_param:opencontrail_analytics_node01_address}
70 - host: ${_param:opencontrail_analytics_node02_address}
71 - host: ${_param:opencontrail_analytics_node03_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +010072 docker:
73 client:
74 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010075 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +010076 status: up
77 pull: true
78 service:
79 analytics:
80 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010081 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010082 network_mode: "host"
83 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +010084 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +010085 volumes:
86 - /etc/contrail:/etc/contrail
87 - /etc/redis/redis.conf:/etc/redis/redis.conf
88 analyticsdb:
89 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010090 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010091 volumes:
92 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
93 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
94 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
95 - /etc/contrail:/etc/contrail
96 - /var/lib/analyticsdb:/var/lib/cassandra
97 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
98 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
99 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
100 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
101 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100102 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100103 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
104 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
105 network_mode: "host"
106 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100107 restart: always