blob: 8889a8be14c4ce6582933d44dd6c11d1183dc04a [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:
Anton Samoylov73f12db2018-12-12 18:34:24 +04009 opencontrail_kafka_config_dir: '/usr/share/kafka/config'
Petr Jediný12624882017-12-04 17:06:12 +010010 opencontrail_kafka_log_cleanup_mtime: '+7'
Anton Samoylov73f12db2018-12-12 18:34:24 +040011 opencontrail_kafka_log_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}
Svimbaa1b24512018-12-13 10:55:29 +010019 opencontrail_message_queue_password: guest
azvyagintsev16ca7ce2018-08-21 17:20:33 +030020 opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag}
21 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 +010022 opencontrail_analytics_container_name: opencontrail_analytics_1
23 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Marek Celouda2f29f02017-06-16 14:47:31 +020024# Temprorary fix for MOS9 packages to pin old version of kafka
25 linux:
26 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020027 kernel:
28 modules:
29 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010030 job:
31 kafka_logs_cleanup:
Anton Samoylov73f12db2018-12-12 18:34:24 +040032 command: "find ${_param:opencontrail_kafka_log_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
Petr Jediný12624882017-12-04 17:06:12 +010033 identifier: kafka_logs_cleanup
34 hour: 0
35 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020036 opencontrail:
37 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010038 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020039 identity:
40 host: ${_param:openstack_control_address}
41 network:
42 host: ${_param:openstack_control_address}
43 collector:
Anton Samoylov9298f7d2018-10-23 23:30:41 +040044 role: ${_param:opencontrail_node_role}
Marek Celoudfa1fa512017-11-03 16:07:04 +010045 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020046 discovery:
47 host: None
Marek Celoud6d2f28c2017-12-01 15:09:47 +010048 identity:
49 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020050 analytics:
51 members:
52 - host: ${_param:opencontrail_analytics_node01_address}
53 - host: ${_param:opencontrail_analytics_node02_address}
54 - host: ${_param:opencontrail_analytics_node03_address}
55 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020056 host: ${_param:opencontrail_message_queue_address}
Svimbaa1b24512018-12-13 10:55:29 +010057 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020058 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020059 - host: ${_param:opencontrail_message_queue_node01_address}
60 - host: ${_param:opencontrail_message_queue_node02_address}
61 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020062 config:
63 members:
64 - host: ${_param:opencontrail_control_node01_address}
65 - host: ${_param:opencontrail_control_node02_address}
66 - host: ${_param:opencontrail_control_node03_address}
67 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010068 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020069 discovery:
70 host: None
71 analytics:
72 members:
73 - host: ${_param:opencontrail_analytics_node01_address}
74 - host: ${_param:opencontrail_analytics_node02_address}
75 - host: ${_param:opencontrail_analytics_node03_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +010076 docker:
77 client:
78 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010079 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +010080 status: up
81 pull: true
82 service:
83 analytics:
84 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010085 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010086 network_mode: "host"
87 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +010088 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +010089 volumes:
90 - /etc/contrail:/etc/contrail
91 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +020092 - /var/log/contrail:/var/log/contrail
93 - /var/log/journal/contrail-analytics:/var/log/journal
94 env_file:
95 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +010096 analyticsdb:
97 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010098 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010099 volumes:
100 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
101 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
102 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
103 - /etc/contrail:/etc/contrail
104 - /var/lib/analyticsdb:/var/lib/cassandra
105 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
106 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
Anton Samoylov73f12db2018-12-12 18:34:24 +0400107 - ${_param:opencontrail_kafka_config_dir}/server.properties:${_param:opencontrail_kafka_config_dir}/server.properties
108 - ${_param:opencontrail_kafka_config_dir}/consumer.properties:${_param:opencontrail_kafka_config_dir}/consumer.properties
109 - ${_param:opencontrail_kafka_config_dir}/zookeeper.properties:${_param:opencontrail_kafka_config_dir}/zookeeper.properties
110 - ${_param:opencontrail_kafka_log_dir}:${_param:opencontrail_kafka_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100111 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
112 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200113 - /var/log/contrail:/var/log/contrail
114 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100115 network_mode: "host"
116 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100117 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200118 env_file:
azvyagintsev16ca7ce2018-08-21 17:20:33 +0300119 - contrail.env