blob: 4ec9b4c28f12216292b8580f7c69d647fbd1d75f [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}
Marek Celoudfa1fa512017-11-03 16:07:04 +010016 opencontrail_analytics_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-analytics
17 opencontrail_analyticsdb_image: docker-prod-local.artifactory.mirantis.com/opencontrail/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
82 volumes:
83 - /etc/contrail:/etc/contrail
84 - /etc/redis/redis.conf:/etc/redis/redis.conf
85 analyticsdb:
86 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010087 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010088 volumes:
89 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
90 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
91 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
92 - /etc/contrail:/etc/contrail
93 - /var/lib/analyticsdb:/var/lib/cassandra
94 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
95 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
96 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
97 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
98 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +010099 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100100 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
101 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
102 network_mode: "host"
103 privileged: true