blob: ee8462a9a263e578bbcd30f79c28c93afa626828 [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
Marek Celoudcba1a442017-06-20 17:14:34 +020013 opencontrail_message_queue_node01_address: ${_param:openstack_message_queue_node01_address}
14 opencontrail_message_queue_node02_address: ${_param:openstack_message_queue_node02_address}
15 opencontrail_message_queue_node03_address: ${_param:openstack_message_queue_node03_address}
16 opencontrail_message_queue_address: ${_param:openstack_message_queue_address}
psvimbersky1d9f0312018-01-10 16:09:31 +010017 opencontrail_analytics_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics
18 opencontrail_analyticsdb_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010019 opencontrail_analytics_container_name: opencontrail_analytics_1
20 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Marek Celouda2f29f02017-06-16 14:47:31 +020021# Temprorary fix for MOS9 packages to pin old version of kafka
22 linux:
23 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020024 kernel:
25 modules:
26 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010027 job:
28 kafka_logs_cleanup:
29 command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
30 identifier: kafka_logs_cleanup
31 hour: 0
32 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020033 opencontrail:
34 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010035 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020036 identity:
37 host: ${_param:openstack_control_address}
38 network:
39 host: ${_param:openstack_control_address}
40 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +010041 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020042 discovery:
43 host: None
Marek Celoud6d2f28c2017-12-01 15:09:47 +010044 identity:
45 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020046 analytics:
47 members:
48 - host: ${_param:opencontrail_analytics_node01_address}
49 - host: ${_param:opencontrail_analytics_node02_address}
50 - host: ${_param:opencontrail_analytics_node03_address}
51 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020052 host: ${_param:opencontrail_message_queue_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020053 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020054 - host: ${_param:opencontrail_message_queue_node01_address}
55 - host: ${_param:opencontrail_message_queue_node02_address}
56 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020057 config:
58 members:
59 - host: ${_param:opencontrail_control_node01_address}
60 - host: ${_param:opencontrail_control_node02_address}
61 - host: ${_param:opencontrail_control_node03_address}
62 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010063 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020064 discovery:
65 host: None
66 analytics:
67 members:
68 - host: ${_param:opencontrail_analytics_node01_address}
69 - host: ${_param:opencontrail_analytics_node02_address}
70 - host: ${_param:opencontrail_analytics_node03_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +010071 docker:
72 client:
73 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010074 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +010075 status: up
76 pull: true
77 service:
78 analytics:
79 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010080 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010081 network_mode: "host"
82 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +010083 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +010084 volumes:
85 - /etc/contrail:/etc/contrail
86 - /etc/redis/redis.conf:/etc/redis/redis.conf
87 analyticsdb:
88 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010089 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010090 volumes:
91 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
92 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
93 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
94 - /etc/contrail:/etc/contrail
95 - /var/lib/analyticsdb:/var/lib/cassandra
96 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
97 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
98 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
99 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
100 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100101 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100102 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
103 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
104 network_mode: "host"
105 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100106 restart: always