blob: b779aedeec4d083d4de7ab6b4fff2d1718e7c496 [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:
azvyagintsev16ca7ce2018-08-21 17:20:33 +03009 mcp_docker_registry: 'docker-prod-local.artifactory.mirantis.com'
Petr Jediný12624882017-12-04 17:06:12 +010010 opencontrail_kafka_log_cleanup_mtime: '+7'
11 opencontrail_kafka_log_cleanup_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:
31 command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
32 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:
Marek Celoudfa1fa512017-11-03 16:07:04 +010043 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020044 discovery:
45 host: None
Marek Celoud6d2f28c2017-12-01 15:09:47 +010046 identity:
47 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020048 analytics:
49 members:
50 - host: ${_param:opencontrail_analytics_node01_address}
51 - host: ${_param:opencontrail_analytics_node02_address}
52 - host: ${_param:opencontrail_analytics_node03_address}
53 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020054 host: ${_param:opencontrail_message_queue_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020055 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020056 - host: ${_param:opencontrail_message_queue_node01_address}
57 - host: ${_param:opencontrail_message_queue_node02_address}
58 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020059 config:
60 members:
61 - host: ${_param:opencontrail_control_node01_address}
62 - host: ${_param:opencontrail_control_node02_address}
63 - host: ${_param:opencontrail_control_node03_address}
64 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010065 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020066 discovery:
67 host: None
68 analytics:
69 members:
70 - host: ${_param:opencontrail_analytics_node01_address}
71 - host: ${_param:opencontrail_analytics_node02_address}
72 - host: ${_param:opencontrail_analytics_node03_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +010073 docker:
74 client:
75 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010076 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +010077 status: up
78 pull: true
79 service:
80 analytics:
81 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010082 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010083 network_mode: "host"
84 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +010085 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +010086 volumes:
87 - /etc/contrail:/etc/contrail
88 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +020089 - /var/log/contrail:/var/log/contrail
90 - /var/log/journal/contrail-analytics:/var/log/journal
91 env_file:
92 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +010093 analyticsdb:
94 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010095 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010096 volumes:
97 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
98 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
99 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
100 - /etc/contrail:/etc/contrail
101 - /var/lib/analyticsdb:/var/lib/cassandra
102 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
103 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
104 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
105 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
106 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100107 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100108 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
109 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200110 - /var/log/contrail:/var/log/contrail
111 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100112 network_mode: "host"
113 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100114 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200115 env_file:
azvyagintsev16ca7ce2018-08-21 17:20:33 +0300116 - contrail.env