blob: 6859b9c56bf6af2683ef17ac84a835ee8131bc57 [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:
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'
Inessa Vasilevskayabd0a0dd2018-11-19 15:26:56 +010012 opencontrail_host_analyticsdb_log_dir: '/var/log/analyticsdb'
13 opencontrail_host_configdb_log_dir: '/var/log/configdb'
14 opencontrail_cassandra_log_dir: '/var/log/cassandra'
15 opencontrail_zookeeper_log_dir: '/var/log/zookeeper'
Marek Celouda2f29f02017-06-16 14:47:31 +020016 opencontrail_version: 4.0
17 linux_repo_contrail_component: oc40
Marek Celoudcba1a442017-06-20 17:14:34 +020018 opencontrail_message_queue_node01_address: ${_param:openstack_control_node01_address}
19 opencontrail_message_queue_node02_address: ${_param:openstack_control_node02_address}
20 opencontrail_message_queue_node03_address: ${_param:openstack_control_node03_address}
21 opencontrail_message_queue_address: ${_param:openstack_control_address}
Anton Samoylovb708d2a2019-03-28 16:38:41 +040022 opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_docker_image_tag}
23 opencontrail_analyticsdb_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_docker_image_tag}
24 opencontrail_controller_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-controller:${_param:opencontrail_docker_image_tag}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010025 opencontrail_controller_container_name: opencontrail_controller_1
26 opencontrail_analytics_container_name: opencontrail_analytics_1
27 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Sergey Kreys4aa58bc2019-02-14 12:38:18 +000028 opencontrail_api_workers_count: 6
Marek Celoudfa1fa512017-11-03 16:07:04 +010029 analytics_vip_address: ${_param:opencontrail_analytics_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020030# Temprorary fix for MOS9 packages to pin old version of kafka
31 linux:
32 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020033 kernel:
34 modules:
35 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010036 job:
37 kafka_logs_cleanup:
Anton Samoylov73f12db2018-12-12 18:34:24 +040038 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 +010039 identifier: kafka_logs_cleanup
40 hour: 0
41 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020042 opencontrail:
43 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010044 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020045 identity:
46 host: ${_param:openstack_control_address}
47 network:
48 host: ${_param:openstack_control_address}
49 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +010050 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020051 discovery:
52 host: None
Marek Celouda2f29f02017-06-16 14:47:31 +020053 analytics:
54 members:
55 - host: ${_param:cluster_node01_address}
56 - host: ${_param:cluster_node02_address}
57 - host: ${_param:cluster_node03_address}
58 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020059 host: ${_param:opencontrail_message_queue_address}
Svimbaa1b24512018-12-13 10:55:29 +010060 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020061 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020062 - host: ${_param:opencontrail_message_queue_node01_address}
63 - host: ${_param:opencontrail_message_queue_node02_address}
64 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020065 config:
66 members:
67 - host: ${_param:cluster_node01_address}
68 - host: ${_param:cluster_node02_address}
69 - host: ${_param:cluster_node03_address}
70 database:
Inessa Vasilevskayabd0a0dd2018-11-19 15:26:56 +010071 analyticsdb_log_dir: ${_param:opencontrail_host_analyticsdb_log_dir}
72 configdb_log_dir: ${_param:opencontrail_host_configdb_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +010073 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020074 discovery:
75 host: None
76 analytics:
77 members:
78 - host: ${_param:cluster_node01_address}
79 - host: ${_param:cluster_node02_address}
80 - host: ${_param:cluster_node03_address}
81 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010082 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020083 network:
84 host: ${_param:openstack_control_address}
85 bind:
86 address: ${_param:cluster_local_address}
87 discovery:
88 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020089 api:
90 host: ${_param:opencontrail_control_address}
Svimba483e8092018-09-18 17:39:04 +020091 workers_count: ${_param:opencontrail_api_workers_count}
Marek Celouda2f29f02017-06-16 14:47:31 +020092 analytics:
93 members:
94 - host: ${_param:cluster_node01_address}
95 - host: ${_param:cluster_node02_address}
96 - host: ${_param:cluster_node03_address}
97 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +010098 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020099 members:
Marek Celoudcba1a442017-06-20 17:14:34 +0200100 - host: ${_param:opencontrail_message_queue_node01_address}
101 - host: ${_param:opencontrail_message_queue_node02_address}
102 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200103 identity:
104 region: ${_param:openstack_region}
105 host: ${_param:openstack_control_address}
106 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100107 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +0100108 identity:
109 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200110 analytics:
111 members:
112 - host: ${_param:cluster_node01_address}
113 - host: ${_param:cluster_node02_address}
114 - host: ${_param:cluster_node03_address}
115 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +0100116 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +0200117 members:
Marek Celoudcba1a442017-06-20 17:14:34 +0200118 - host: ${_param:opencontrail_message_queue_node01_address}
119 - host: ${_param:opencontrail_message_queue_node02_address}
120 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200121 database:
122 members:
123 - host: ${_param:cluster_node01_address}
124 - host: ${_param:cluster_node02_address}
125 - host: ${_param:cluster_node03_address}
126 discovery:
127 host: None
128 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100129 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200130 analytics:
131 host: ${_param:opencontrail_control_address}
132 cache:
133 host: 127.0.0.1
134 identity:
135 host: ${_param:openstack_control_address}
136 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100137 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +0200138 network:
139 host: ${_param:openstack_control_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100140 docker:
141 client:
142 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100143 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100144 status: up
145 pull: true
146 service:
147 controller:
148 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100149 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100150 volumes:
151 - /etc/contrail:/etc/contrail
Inessa Vasilevskayaa5610b22018-12-27 13:21:28 +0100152 - /etc/redis/redis_webui.conf:/etc/redis/redis.conf
Marek Celoudfa1fa512017-11-03 16:07:04 +0100153 - /var/lib/configdb:/var/lib/cassandra
154 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
155 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
156 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
157 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
158 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
159 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
160 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200161 - /var/log/contrail:/var/log/contrail
162 - /var/log/journal/contrail-controller:/var/log/journal
Inessa Vasilevskayabd0a0dd2018-11-19 15:26:56 +0100163 - ${_param:opencontrail_host_configdb_log_dir}/cassandra:${_param:opencontrail_cassandra_log_dir}
164 - ${_param:opencontrail_host_configdb_log_dir}/zookeeper:${_param:opencontrail_zookeeper_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100165 network_mode: "host"
166 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100167 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200168 env_file:
169 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100170 analytics:
171 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100172 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100173 network_mode: "host"
174 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100175 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +0100176 volumes:
177 - /etc/contrail:/etc/contrail
178 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +0200179 - /var/log/contrail:/var/log/contrail
180 - /var/log/journal/contrail-analytics:/var/log/journal
181 env_file:
182 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100183 analyticsdb:
184 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100185 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100186 volumes:
187 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
188 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
189 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
190 - /etc/contrail:/etc/contrail
191 - /var/lib/analyticsdb:/var/lib/cassandra
192 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
193 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
Anton Samoylov73f12db2018-12-12 18:34:24 +0400194 - ${_param:opencontrail_kafka_config_dir}/server.properties:${_param:opencontrail_kafka_config_dir}/server.properties
195 - ${_param:opencontrail_kafka_config_dir}/consumer.properties:${_param:opencontrail_kafka_config_dir}/consumer.properties
196 - ${_param:opencontrail_kafka_config_dir}/zookeeper.properties:${_param:opencontrail_kafka_config_dir}/zookeeper.properties
197 - ${_param:opencontrail_kafka_log_dir}:${_param:opencontrail_kafka_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100198 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
199 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200200 - /var/log/contrail:/var/log/contrail
201 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Inessa Vasilevskayabd0a0dd2018-11-19 15:26:56 +0100202 - ${_param:opencontrail_host_analyticsdb_log_dir}/cassandra:${_param:opencontrail_cassandra_log_dir}
203 - ${_param:opencontrail_host_analyticsdb_log_dir}/zookeeper:${_param:opencontrail_zookeeper_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100204 network_mode: "host"
205 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100206 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200207 env_file:
208 - contrail.env