blob: d0573e96eb12e8bd36f1917630b748004a8c1c2b [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
Svimbaa1b24512018-12-13 10:55:29 +010018 opencontrail_message_queue_password: guest
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:
Anton Samoylov73f12db2018-12-12 18:34:24 +040030 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 +010031 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
Marek Celouda2f29f02017-06-16 14:47:31 +020049 contrail_config_stats:
50 type: contrail-config
51 service_name: contrail
52 format: listen
53 binds:
54 - address: '*'
55 port: 5937
56 user: haproxy
57 password: ${_param:opencontrail_stats_password}
58 contrail_openstack_stats:
59 type: contrail-config
60 service_name: contrail
61 format: listen
62 binds:
63 - address: '*'
64 port: 5936
65 user: haproxy
66 password: ${_param:opencontrail_stats_password}
67 contrail_collector_stats:
68 type: contrail-config
69 service_name: contrail
70 format: listen
71 binds:
72 - address: '*'
73 port: 5938
74 user: haproxy
75 password: ${_param:opencontrail_stats_password}
76 opencontrail:
77 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010078 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020079 identity:
80 host: ${_param:openstack_control_address}
81 network:
82 host: ${_param:openstack_control_address}
83 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010084 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020085 network:
86 host: ${_param:openstack_control_address}
87 bind:
88 address: ${_param:single_address}
89 discovery:
90 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020091 api:
92 host: ${_param:single_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020093 analytics:
94 members:
95 - host: ${_param:single_address}
96 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +010097 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020098 members:
99 - host: ${_param:openstack_control_address}
100 identity:
101 region: ${_param:openstack_region}
102 host: ${_param:openstack_control_address}
103 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100104 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200105 analytics:
106 members:
107 - host: ${_param:single_address}
108 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +0100109 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +0200110 members:
111 - host: ${_param:openstack_control_address}
112 database:
113 members:
114 - host: ${_param:single_address}
115 discovery:
116 host: None
117 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100118 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200119 analytics:
120 host: ${_param:single_address}
121 cache:
122 host: 127.0.0.1
123 identity:
124 host: ${_param:openstack_control_address}
125 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100126 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +0200127 network:
128 host: ${_param:openstack_control_address}
129 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100130 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200131 analytics:
132 members:
133 - host: ${_param:single_address}
134 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100135 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +0100136 identity:
137 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200138 discovery:
139 host: None
140 database:
141 members:
142 - host: ${_param:single_address}
143 analytics:
144 members:
145 - host: ${_param:single_address}
146 message_queue:
147 host: ${_param:openstack_control_address}
Svimbaa1b24512018-12-13 10:55:29 +0100148 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +0200149 members:
150 - host: ${_param:openstack_control_address}
151 config:
152 members:
153 - host: ${_param:single_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100154 docker:
155 client:
156 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100157 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100158 status: up
159 pull: true
160 service:
161 controller:
162 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100163 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100164 volumes:
165 - /etc/contrail:/etc/contrail
Inessa Vasilevskaya88337442018-12-27 13:21:28 +0100166 - /etc/redis/redis_webui.conf:/etc/redis/redis.conf
Marek Celoudfa1fa512017-11-03 16:07:04 +0100167 - /var/lib/configdb:/var/lib/cassandra
168 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
169 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
170 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
171 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
172 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
173 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
174 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200175 - /var/log/contrail:/var/log/contrail
176 - /var/log/journal/contrail-controller:/var/log/journal
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
193 env_file:
194 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100195 analyticsdb:
196 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100197 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100198 volumes:
199 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
200 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
201 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
202 - /etc/contrail:/etc/contrail
203 - /var/lib/analyticsdb:/var/lib/cassandra
204 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
205 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
Anton Samoylov73f12db2018-12-12 18:34:24 +0400206 - ${_param:opencontrail_kafka_config_dir}/server.properties:${_param:opencontrail_kafka_config_dir}/server.properties
207 - ${_param:opencontrail_kafka_config_dir}/consumer.properties:${_param:opencontrail_kafka_config_dir}/consumer.properties
208 - ${_param:opencontrail_kafka_config_dir}/zookeeper.properties:${_param:opencontrail_kafka_config_dir}/zookeeper.properties
209 - ${_param:opencontrail_kafka_log_dir}:${_param:opencontrail_kafka_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100210 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
211 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200212 - /var/log/contrail:/var/log/contrail
213 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100214 network_mode: "host"
215 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100216 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200217 env_file:
218 - contrail.env