blob: 779d8d077cbb2562afea037c0700ebf8d0b47bc8 [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
azvyagintsev16ca7ce2018-08-21 17:20:33 +030012 opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag}
13 opencontrail_analyticsdb_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_image_tag}
14 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 +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
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:
96 members:
97 - host: ${_param:openstack_control_address}
98 identity:
99 region: ${_param:openstack_region}
100 host: ${_param:openstack_control_address}
101 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100102 config_only: true
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 database:
110 members:
111 - host: ${_param:single_address}
112 discovery:
113 host: None
114 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100115 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200116 analytics:
117 host: ${_param:single_address}
118 cache:
119 host: 127.0.0.1
120 identity:
121 host: ${_param:openstack_control_address}
122 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100123 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +0200124 network:
125 host: ${_param:openstack_control_address}
126 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100127 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200128 analytics:
129 members:
130 - host: ${_param:single_address}
131 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100132 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +0100133 identity:
134 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200135 discovery:
136 host: None
137 database:
138 members:
139 - host: ${_param:single_address}
140 analytics:
141 members:
142 - host: ${_param:single_address}
143 message_queue:
144 host: ${_param:openstack_control_address}
145 members:
146 - host: ${_param:openstack_control_address}
147 config:
148 members:
149 - host: ${_param:single_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100150 docker:
151 client:
152 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100153 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100154 status: up
155 pull: true
156 service:
157 controller:
158 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100159 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100160 volumes:
161 - /etc/contrail:/etc/contrail
162 - /var/lib/configdb:/var/lib/cassandra
163 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
164 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
165 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
166 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
167 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
168 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
169 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200170 - /var/log/contrail:/var/log/contrail
171 - /var/log/journal/contrail-controller:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100172 network_mode: "host"
173 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100174 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200175 env_file:
176 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100177 analytics:
178 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100179 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100180 network_mode: "host"
181 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100182 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +0100183 volumes:
184 - /etc/contrail:/etc/contrail
185 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +0200186 - /var/log/contrail:/var/log/contrail
187 - /var/log/journal/contrail-analytics:/var/log/journal
188 env_file:
189 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100190 analyticsdb:
191 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100192 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100193 volumes:
194 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
195 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
196 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
197 - /etc/contrail:/etc/contrail
198 - /var/lib/analyticsdb:/var/lib/cassandra
199 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
200 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
201 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
202 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
203 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100204 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100205 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
206 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200207 - /var/log/contrail:/var/log/contrail
208 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100209 network_mode: "host"
210 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100211 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200212 env_file:
213 - contrail.env