blob: 4570e69101b2cbfcb2630642e6e1cdf20ed77b29 [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:
Petr Jediný12624882017-12-04 17:06:12 +01007 opencontrail_kafka_log_cleanup_mtime: '+7'
8 opencontrail_kafka_log_cleanup_dir: '/usr/share/kafka/logs/'
Marek Celouda2f29f02017-06-16 14:47:31 +02009 opencontrail_version: 4.0
10 linux_repo_contrail_component: oc40
Petr Jedinýeb7fceb2018-06-21 19:17:27 +020011 opencontrail_image_tag: latest
12 opencontrail_analytics_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag}
13 opencontrail_analyticsdb_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_image_tag}
14 opencontrail_controller_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-controller:${_param:opencontrail_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:
29 command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
30 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
48 contrail_discovery:
49 type: contrail-api
50 service_name: contrail
51 binds:
52 - address: ${_param:single_address}
53 port: 5998
54 servers:
55 - name: ctl01
56 host: ${_param:single_address}
57 port: 9110
58 params: check inter 2000 rise 2 fall 3
59 contrail_config_stats:
60 type: contrail-config
61 service_name: contrail
62 format: listen
63 binds:
64 - address: '*'
65 port: 5937
66 user: haproxy
67 password: ${_param:opencontrail_stats_password}
68 contrail_openstack_stats:
69 type: contrail-config
70 service_name: contrail
71 format: listen
72 binds:
73 - address: '*'
74 port: 5936
75 user: haproxy
76 password: ${_param:opencontrail_stats_password}
77 contrail_collector_stats:
78 type: contrail-config
79 service_name: contrail
80 format: listen
81 binds:
82 - address: '*'
83 port: 5938
84 user: haproxy
85 password: ${_param:opencontrail_stats_password}
86 opencontrail:
87 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010088 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020089 identity:
90 host: ${_param:openstack_control_address}
91 network:
92 host: ${_param:openstack_control_address}
93 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010094 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020095 network:
96 host: ${_param:openstack_control_address}
97 bind:
98 address: ${_param:single_address}
99 discovery:
100 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +0200101 api:
102 host: ${_param:single_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200103 analytics:
104 members:
105 - host: ${_param:single_address}
106 message_queue:
107 members:
108 - host: ${_param:openstack_control_address}
109 identity:
110 region: ${_param:openstack_region}
111 host: ${_param:openstack_control_address}
112 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100113 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200114 analytics:
115 members:
116 - host: ${_param:single_address}
117 message_queue:
118 members:
119 - host: ${_param:openstack_control_address}
120 database:
121 members:
122 - host: ${_param:single_address}
123 discovery:
124 host: None
125 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100126 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200127 analytics:
128 host: ${_param:single_address}
129 cache:
130 host: 127.0.0.1
131 identity:
132 host: ${_param:openstack_control_address}
133 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100134 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +0200135 network:
136 host: ${_param:openstack_control_address}
137 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100138 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200139 analytics:
140 members:
141 - host: ${_param:single_address}
142 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100143 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +0100144 identity:
145 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200146 discovery:
147 host: None
148 database:
149 members:
150 - host: ${_param:single_address}
151 analytics:
152 members:
153 - host: ${_param:single_address}
154 message_queue:
155 host: ${_param:openstack_control_address}
156 members:
157 - host: ${_param:openstack_control_address}
158 config:
159 members:
160 - host: ${_param:single_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100161 docker:
162 client:
163 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100164 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100165 status: up
166 pull: true
167 service:
168 controller:
169 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100170 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100171 volumes:
172 - /etc/contrail:/etc/contrail
173 - /var/lib/configdb:/var/lib/cassandra
174 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
175 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
176 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
177 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
178 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
179 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
180 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200181 - /var/log/contrail:/var/log/contrail
182 - /var/log/journal/contrail-controller:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100183 network_mode: "host"
184 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100185 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200186 env_file:
187 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100188 analytics:
189 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100190 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100191 network_mode: "host"
192 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100193 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +0100194 volumes:
195 - /etc/contrail:/etc/contrail
196 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +0200197 - /var/log/contrail:/var/log/contrail
198 - /var/log/journal/contrail-analytics:/var/log/journal
199 env_file:
200 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100201 analyticsdb:
202 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100203 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100204 volumes:
205 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
206 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
207 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
208 - /etc/contrail:/etc/contrail
209 - /var/lib/analyticsdb:/var/lib/cassandra
210 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
211 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
212 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
213 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
214 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100215 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100216 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
217 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200218 - /var/log/contrail:/var/log/contrail
219 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100220 network_mode: "host"
221 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100222 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200223 env_file:
224 - contrail.env