blob: c38e06aac5f73b0c5022577dde658350279f1e10 [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
Marek Celouda2f29f02017-06-16 14:47:31 +020018# Temprorary fix for MOS9 packages to pin old version of kafka
19 linux:
20 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020021 kernel:
22 modules:
23 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010024 job:
25 kafka_logs_cleanup:
26 command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
27 identifier: kafka_logs_cleanup
28 hour: 0
29 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020030 opencontrail:
31 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010032 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020033 identity:
34 host: ${_param:openstack_control_address}
35 network:
36 host: ${_param:openstack_control_address}
37 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +010038 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020039 discovery:
40 host: None
Marek Celoud6d2f28c2017-12-01 15:09:47 +010041 identity:
42 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020043 analytics:
44 members:
45 - host: ${_param:opencontrail_analytics_node01_address}
46 - host: ${_param:opencontrail_analytics_node02_address}
47 - host: ${_param:opencontrail_analytics_node03_address}
48 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020049 host: ${_param:opencontrail_message_queue_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020050 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020051 - host: ${_param:opencontrail_message_queue_node01_address}
52 - host: ${_param:opencontrail_message_queue_node02_address}
53 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020054 config:
55 members:
56 - host: ${_param:opencontrail_control_node01_address}
57 - host: ${_param:opencontrail_control_node02_address}
58 - host: ${_param:opencontrail_control_node03_address}
59 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010060 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020061 discovery:
62 host: None
63 analytics:
64 members:
65 - host: ${_param:opencontrail_analytics_node01_address}
66 - host: ${_param:opencontrail_analytics_node02_address}
67 - host: ${_param:opencontrail_analytics_node03_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +010068 docker:
69 client:
70 compose:
71 opencontrail_api:
72 status: up
73 pull: true
74 service:
75 analytics:
76 image: ${_param:opencontrail_analytics_image}
77 network_mode: "host"
78 privileged: true
79 volumes:
80 - /etc/contrail:/etc/contrail
81 - /etc/redis/redis.conf:/etc/redis/redis.conf
82 analyticsdb:
83 image: ${_param:opencontrail_analyticsdb_image}
84 volumes:
85 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
86 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
87 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
88 - /etc/contrail:/etc/contrail
89 - /var/lib/analyticsdb:/var/lib/cassandra
90 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
91 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
92 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
93 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
94 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +010095 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +010096 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
97 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
98 network_mode: "host"
99 privileged: true