blob: 9826b28b4aa238ac8189fe2befba8b314738f612 [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:
azvyagintsev16ca7ce2018-08-21 17:20:33 +03007 mcp_docker_registry: 'docker-prod-local.artifactory.mirantis.com'
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
Petr Jedinýeb7fceb2018-06-21 19:17:27 +020012 opencontrail_image_tag: latest
azvyagintsev16ca7ce2018-08-21 17:20:33 +030013 opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag}
14 opencontrail_analyticsdb_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_image_tag}
15 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 +010016 opencontrail_controller_container_name: opencontrail_controller_1
17 opencontrail_analytics_container_name: opencontrail_analytics_1
18 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Marek Celouda2f29f02017-06-16 14:47:31 +020019# Temprorary fix for MOS9 packages to pin old version of kafka
20 linux:
21 system:
22 package:
Marek Celouda2f29f02017-06-16 14:47:31 +020023 contrail-api-cli:
24 version: latest
25 kernel:
26 modules:
27 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010028 job:
29 kafka_logs_cleanup:
30 command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
31 identifier: kafka_logs_cleanup
32 hour: 0
33 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020034 haproxy:
35 proxy:
36 listen:
37 contrail_api:
38 type: contrail-api
39 service_name: contrail
40 check: false
41 binds:
42 - address: ${_param:single_address}
43 port: 8082
44 servers:
45 - name: ctl01
46 host: ${_param:single_address}
47 port: 9100
48 params: check inter 2000 rise 2 fall 3
49 contrail_discovery:
50 type: contrail-api
51 service_name: contrail
52 binds:
53 - address: ${_param:single_address}
54 port: 5998
55 servers:
56 - name: ctl01
57 host: ${_param:single_address}
58 port: 9110
59 params: check inter 2000 rise 2 fall 3
60 contrail_config_stats:
61 type: contrail-config
62 service_name: contrail
63 format: listen
64 binds:
65 - address: '*'
66 port: 5937
67 user: haproxy
68 password: ${_param:opencontrail_stats_password}
69 contrail_openstack_stats:
70 type: contrail-config
71 service_name: contrail
72 format: listen
73 binds:
74 - address: '*'
75 port: 5936
76 user: haproxy
77 password: ${_param:opencontrail_stats_password}
78 contrail_collector_stats:
79 type: contrail-config
80 service_name: contrail
81 format: listen
82 binds:
83 - address: '*'
84 port: 5938
85 user: haproxy
86 password: ${_param:opencontrail_stats_password}
87 opencontrail:
88 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010089 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020090 identity:
91 host: ${_param:openstack_control_address}
92 network:
93 host: ${_param:openstack_control_address}
94 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010095 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020096 network:
97 host: ${_param:openstack_control_address}
98 bind:
99 address: ${_param:single_address}
100 discovery:
101 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +0200102 api:
103 host: ${_param:single_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200104 analytics:
105 members:
106 - host: ${_param:single_address}
107 message_queue:
108 members:
109 - host: ${_param:openstack_control_address}
110 identity:
111 region: ${_param:openstack_region}
112 host: ${_param:openstack_control_address}
113 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100114 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200115 analytics:
116 members:
117 - host: ${_param:single_address}
118 message_queue:
119 members:
120 - host: ${_param:openstack_control_address}
121 database:
122 members:
123 - host: ${_param:single_address}
124 discovery:
125 host: None
126 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100127 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200128 analytics:
129 host: ${_param:single_address}
130 cache:
131 host: 127.0.0.1
132 identity:
133 host: ${_param:openstack_control_address}
134 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100135 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +0200136 network:
137 host: ${_param:openstack_control_address}
138 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100139 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200140 analytics:
141 members:
142 - host: ${_param:single_address}
143 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100144 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +0100145 identity:
146 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200147 discovery:
148 host: None
149 database:
150 members:
151 - host: ${_param:single_address}
152 analytics:
153 members:
154 - host: ${_param:single_address}
155 message_queue:
156 host: ${_param:openstack_control_address}
157 members:
158 - host: ${_param:openstack_control_address}
159 config:
160 members:
161 - host: ${_param:single_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100162 docker:
163 client:
164 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100165 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100166 status: up
167 pull: true
168 service:
169 controller:
170 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100171 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100172 volumes:
173 - /etc/contrail:/etc/contrail
174 - /var/lib/configdb:/var/lib/cassandra
175 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
176 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
177 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
178 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
179 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
180 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
181 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200182 - /var/log/contrail:/var/log/contrail
183 - /var/log/journal/contrail-controller:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100184 network_mode: "host"
185 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100186 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200187 env_file:
188 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100189 analytics:
190 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100191 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100192 network_mode: "host"
193 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100194 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +0100195 volumes:
196 - /etc/contrail:/etc/contrail
197 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +0200198 - /var/log/contrail:/var/log/contrail
199 - /var/log/journal/contrail-analytics:/var/log/journal
200 env_file:
201 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100202 analyticsdb:
203 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100204 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100205 volumes:
206 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
207 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
208 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
209 - /etc/contrail:/etc/contrail
210 - /var/lib/analyticsdb:/var/lib/cassandra
211 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
212 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
213 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
214 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
215 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100216 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100217 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
218 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200219 - /var/log/contrail:/var/log/contrail
220 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100221 network_mode: "host"
222 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100223 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200224 env_file:
225 - contrail.env