blob: 7612638fb520cacb5d5e308595527b62b727379e [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.opencontrail.control.single
4- service.haproxy.proxy.single
5parameters:
6 _param:
Anton Samoylov73f12db2018-12-12 18:34:24 +04007 opencontrail_kafka_config_dir: '/usr/share/kafka/config'
Petr Jediný12624882017-12-04 17:06:12 +01008 opencontrail_kafka_log_cleanup_mtime: '+7'
Anton Samoylov73f12db2018-12-12 18:34:24 +04009 opencontrail_kafka_log_dir: '/usr/share/kafka/logs'
Marek Celouda2f29f02017-06-16 14:47:31 +020010 opencontrail_version: 4.0
11 linux_repo_contrail_component: oc40
Anton Samoylovf05f9a82019-03-28 16:38:41 +040012 opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_docker_image_tag}
13 opencontrail_analyticsdb_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_docker_image_tag}
14 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 +010015 opencontrail_controller_container_name: opencontrail_controller_1
16 opencontrail_analytics_container_name: opencontrail_analytics_1
17 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Marek Celouda2f29f02017-06-16 14:47:31 +020018# Temprorary fix for MOS9 packages to pin old version of kafka
19 linux:
20 system:
21 package:
Marek Celouda2f29f02017-06-16 14:47:31 +020022 contrail-api-cli:
23 version: latest
24 kernel:
25 modules:
26 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010027 job:
28 kafka_logs_cleanup:
Anton Samoylov73f12db2018-12-12 18:34:24 +040029 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 +010030 identifier: kafka_logs_cleanup
31 hour: 0
32 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020033 haproxy:
34 proxy:
35 listen:
36 contrail_api:
37 type: contrail-api
38 service_name: contrail
39 check: false
40 binds:
41 - address: ${_param:single_address}
42 port: 8082
43 servers:
44 - name: ctl01
45 host: ${_param:single_address}
46 port: 9100
47 params: check inter 2000 rise 2 fall 3
Marek Celouda2f29f02017-06-16 14:47:31 +020048 contrail_config_stats:
49 type: contrail-config
50 service_name: contrail
51 format: listen
52 binds:
53 - address: '*'
54 port: 5937
55 user: haproxy
56 password: ${_param:opencontrail_stats_password}
57 contrail_openstack_stats:
58 type: contrail-config
59 service_name: contrail
60 format: listen
61 binds:
62 - address: '*'
63 port: 5936
64 user: haproxy
65 password: ${_param:opencontrail_stats_password}
66 contrail_collector_stats:
67 type: contrail-config
68 service_name: contrail
69 format: listen
70 binds:
71 - address: '*'
72 port: 5938
73 user: haproxy
74 password: ${_param:opencontrail_stats_password}
75 opencontrail:
76 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010077 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020078 identity:
79 host: ${_param:openstack_control_address}
80 network:
81 host: ${_param:openstack_control_address}
82 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010083 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020084 network:
85 host: ${_param:openstack_control_address}
86 bind:
87 address: ${_param:single_address}
88 discovery:
89 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020090 api:
91 host: ${_param:single_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020092 analytics:
93 members:
94 - host: ${_param:single_address}
95 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +010096 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020097 members:
98 - host: ${_param:openstack_control_address}
99 identity:
100 region: ${_param:openstack_region}
101 host: ${_param:openstack_control_address}
102 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100103 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200104 analytics:
105 members:
106 - host: ${_param:single_address}
107 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +0100108 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +0200109 members:
110 - host: ${_param:openstack_control_address}
111 database:
112 members:
113 - host: ${_param:single_address}
114 discovery:
115 host: None
116 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100117 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200118 analytics:
119 host: ${_param:single_address}
120 cache:
121 host: 127.0.0.1
122 identity:
123 host: ${_param:openstack_control_address}
124 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100125 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +0200126 network:
127 host: ${_param:openstack_control_address}
128 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100129 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200130 analytics:
131 members:
132 - host: ${_param:single_address}
133 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100134 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +0100135 identity:
136 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200137 discovery:
138 host: None
139 database:
140 members:
141 - host: ${_param:single_address}
142 analytics:
143 members:
144 - host: ${_param:single_address}
145 message_queue:
146 host: ${_param:openstack_control_address}
Svimbaa1b24512018-12-13 10:55:29 +0100147 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +0200148 members:
149 - host: ${_param:openstack_control_address}
150 config:
151 members:
152 - host: ${_param:single_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100153 docker:
154 client:
155 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100156 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100157 status: up
158 pull: true
159 service:
160 controller:
161 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100162 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100163 volumes:
164 - /etc/contrail:/etc/contrail
Inessa Vasilevskaya88337442018-12-27 13:21:28 +0100165 - /etc/redis/redis_webui.conf:/etc/redis/redis.conf
Marek Celoudfa1fa512017-11-03 16:07:04 +0100166 - /var/lib/configdb:/var/lib/cassandra
167 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
168 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
169 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
170 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
171 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
172 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
173 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200174 - /var/log/contrail:/var/log/contrail
175 - /var/log/journal/contrail-controller:/var/log/journal
Anton Samoylov5d5a1ca2019-06-19 15:02:31 +0400176 - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro
Marek Celoudfa1fa512017-11-03 16:07:04 +0100177 network_mode: "host"
178 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100179 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200180 env_file:
181 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100182 analytics:
183 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100184 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100185 network_mode: "host"
186 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100187 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +0100188 volumes:
189 - /etc/contrail:/etc/contrail
190 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +0200191 - /var/log/contrail:/var/log/contrail
192 - /var/log/journal/contrail-analytics:/var/log/journal
Anton Samoylov5d5a1ca2019-06-19 15:02:31 +0400193 - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro
Svimbad3e59382018-07-03 12:25:19 +0200194 env_file:
195 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100196 analyticsdb:
197 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100198 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100199 volumes:
200 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
201 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
202 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
203 - /etc/contrail:/etc/contrail
204 - /var/lib/analyticsdb:/var/lib/cassandra
205 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
206 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
Anton Samoylov73f12db2018-12-12 18:34:24 +0400207 - ${_param:opencontrail_kafka_config_dir}/server.properties:${_param:opencontrail_kafka_config_dir}/server.properties
208 - ${_param:opencontrail_kafka_config_dir}/consumer.properties:${_param:opencontrail_kafka_config_dir}/consumer.properties
209 - ${_param:opencontrail_kafka_config_dir}/zookeeper.properties:${_param:opencontrail_kafka_config_dir}/zookeeper.properties
210 - ${_param:opencontrail_kafka_log_dir}:${_param:opencontrail_kafka_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100211 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
212 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200213 - /var/log/contrail:/var/log/contrail
214 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Anton Samoylov5d5a1ca2019-06-19 15:02:31 +0400215 - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro
Marek Celoudfa1fa512017-11-03 16:07:04 +0100216 network_mode: "host"
217 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100218 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200219 env_file:
220 - contrail.env