blob: 381a0d2fe42a8ba3cfa25c17199d8f5d45f5458a [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.cluster
Anton Samoylovb7d48852018-10-11 23:59:56 +04005- system.haproxy.proxy.listen.opencontrail.control4_0
Marek Celouda2f29f02017-06-16 14:47:31 +02006- 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
Petr Jedinýeb7fceb2018-06-21 19:17:27 +020013 opencontrail_image_tag: latest
Marek Celoudcba1a442017-06-20 17:14:34 +020014 opencontrail_message_queue_node01_address: ${_param:openstack_control_node01_address}
15 opencontrail_message_queue_node02_address: ${_param:openstack_control_node02_address}
16 opencontrail_message_queue_node03_address: ${_param:openstack_control_node03_address}
17 opencontrail_message_queue_address: ${_param:openstack_control_address}
azvyagintsev16ca7ce2018-08-21 17:20:33 +030018 opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag}
19 opencontrail_analyticsdb_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_image_tag}
20 opencontrail_controller_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-controller:${_param:opencontrail_image_tag}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010021 opencontrail_controller_container_name: opencontrail_controller_1
22 opencontrail_analytics_container_name: opencontrail_analytics_1
23 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Svimba483e8092018-09-18 17:39:04 +020024 opencontrail_api_workers_count: 6
Marek Celoudfa1fa512017-11-03 16:07:04 +010025 analytics_vip_address: ${_param:opencontrail_analytics_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020026# Temprorary fix for MOS9 packages to pin old version of kafka
27 linux:
28 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020029 kernel:
30 modules:
31 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010032 job:
33 kafka_logs_cleanup:
34 command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
35 identifier: kafka_logs_cleanup
36 hour: 0
37 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020038 opencontrail:
39 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010040 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020041 identity:
42 host: ${_param:openstack_control_address}
43 network:
44 host: ${_param:openstack_control_address}
45 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +010046 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020047 discovery:
48 host: None
Marek Celouda2f29f02017-06-16 14:47:31 +020049 analytics:
50 members:
51 - host: ${_param:cluster_node01_address}
52 - host: ${_param:cluster_node02_address}
53 - host: ${_param:cluster_node03_address}
54 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020055 host: ${_param:opencontrail_message_queue_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020056 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020057 - host: ${_param:opencontrail_message_queue_node01_address}
58 - host: ${_param:opencontrail_message_queue_node02_address}
59 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020060 config:
61 members:
62 - host: ${_param:cluster_node01_address}
63 - host: ${_param:cluster_node02_address}
64 - host: ${_param:cluster_node03_address}
65 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010066 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020067 discovery:
68 host: None
69 analytics:
70 members:
71 - host: ${_param:cluster_node01_address}
72 - host: ${_param:cluster_node02_address}
73 - host: ${_param:cluster_node03_address}
74 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010075 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020076 network:
77 host: ${_param:openstack_control_address}
78 bind:
79 address: ${_param:cluster_local_address}
80 discovery:
81 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020082 api:
83 host: ${_param:opencontrail_control_address}
Svimba483e8092018-09-18 17:39:04 +020084 workers_count: ${_param:opencontrail_api_workers_count}
Marek Celouda2f29f02017-06-16 14:47:31 +020085 analytics:
86 members:
87 - host: ${_param:cluster_node01_address}
88 - host: ${_param:cluster_node02_address}
89 - host: ${_param:cluster_node03_address}
90 message_queue:
91 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020092 - host: ${_param:opencontrail_message_queue_node01_address}
93 - host: ${_param:opencontrail_message_queue_node02_address}
94 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020095 identity:
96 region: ${_param:openstack_region}
97 host: ${_param:openstack_control_address}
98 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +010099 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +0100100 identity:
101 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200102 analytics:
103 members:
104 - host: ${_param:cluster_node01_address}
105 - host: ${_param:cluster_node02_address}
106 - host: ${_param:cluster_node03_address}
107 message_queue:
108 members:
Marek Celoudcba1a442017-06-20 17:14:34 +0200109 - host: ${_param:opencontrail_message_queue_node01_address}
110 - host: ${_param:opencontrail_message_queue_node02_address}
111 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200112 database:
113 members:
114 - host: ${_param:cluster_node01_address}
115 - host: ${_param:cluster_node02_address}
116 - host: ${_param:cluster_node03_address}
117 discovery:
118 host: None
119 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100120 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200121 analytics:
122 host: ${_param:opencontrail_control_address}
123 cache:
124 host: 127.0.0.1
125 identity:
126 host: ${_param:openstack_control_address}
127 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100128 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +0200129 network:
130 host: ${_param:openstack_control_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100131 docker:
132 client:
133 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100134 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100135 status: up
136 pull: true
137 service:
138 controller:
139 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100140 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100141 volumes:
142 - /etc/contrail:/etc/contrail
143 - /var/lib/configdb:/var/lib/cassandra
144 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
145 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
146 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
147 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
148 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
149 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
150 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200151 - /var/log/contrail:/var/log/contrail
152 - /var/log/journal/contrail-controller:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100153 network_mode: "host"
154 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100155 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200156 env_file:
157 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100158 analytics:
159 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100160 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100161 network_mode: "host"
162 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100163 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +0100164 volumes:
165 - /etc/contrail:/etc/contrail
166 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +0200167 - /var/log/contrail:/var/log/contrail
168 - /var/log/journal/contrail-analytics:/var/log/journal
169 env_file:
170 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100171 analyticsdb:
172 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100173 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100174 volumes:
175 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
176 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
177 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
178 - /etc/contrail:/etc/contrail
179 - /var/lib/analyticsdb:/var/lib/cassandra
180 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
181 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
182 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
183 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
184 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100185 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100186 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
187 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200188 - /var/log/contrail:/var/log/contrail
189 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100190 network_mode: "host"
191 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100192 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200193 env_file:
194 - contrail.env