blob: 9c11443b437d99c9fd80eb04534d2fcdf7838df8 [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
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
Svimbaa1b24512018-12-13 10:55:29 +010019 opencontrail_message_queue_password: guest
Marek Celouda2f29f02017-06-16 14:47:31 +020020# Temprorary fix for MOS9 packages to pin old version of kafka
21 linux:
22 system:
23 package:
Marek Celouda2f29f02017-06-16 14:47:31 +020024 contrail-api-cli:
25 version: latest
26 kernel:
27 modules:
28 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010029 job:
30 kafka_logs_cleanup:
Anton Samoylov73f12db2018-12-12 18:34:24 +040031 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 +010032 identifier: kafka_logs_cleanup
33 hour: 0
34 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020035 haproxy:
36 proxy:
37 listen:
38 contrail_api:
39 type: contrail-api
40 service_name: contrail
41 check: false
42 binds:
43 - address: ${_param:single_address}
44 port: 8082
45 servers:
46 - name: ctl01
47 host: ${_param:single_address}
48 port: 9100
49 params: check inter 2000 rise 2 fall 3
Marek Celouda2f29f02017-06-16 14:47:31 +020050 contrail_config_stats:
51 type: contrail-config
52 service_name: contrail
53 format: listen
54 binds:
55 - address: '*'
56 port: 5937
57 user: haproxy
58 password: ${_param:opencontrail_stats_password}
59 contrail_openstack_stats:
60 type: contrail-config
61 service_name: contrail
62 format: listen
63 binds:
64 - address: '*'
65 port: 5936
66 user: haproxy
67 password: ${_param:opencontrail_stats_password}
68 contrail_collector_stats:
69 type: contrail-config
70 service_name: contrail
71 format: listen
72 binds:
73 - address: '*'
74 port: 5938
75 user: haproxy
76 password: ${_param:opencontrail_stats_password}
77 opencontrail:
78 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010079 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020080 identity:
81 host: ${_param:openstack_control_address}
82 network:
83 host: ${_param:openstack_control_address}
84 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010085 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020086 network:
87 host: ${_param:openstack_control_address}
88 bind:
89 address: ${_param:single_address}
90 discovery:
91 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020092 api:
93 host: ${_param:single_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020094 analytics:
95 members:
96 - host: ${_param:single_address}
97 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +010098 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020099 members:
100 - host: ${_param:openstack_control_address}
101 identity:
102 region: ${_param:openstack_region}
103 host: ${_param:openstack_control_address}
104 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100105 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200106 analytics:
107 members:
108 - host: ${_param:single_address}
109 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +0100110 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +0200111 members:
112 - host: ${_param:openstack_control_address}
113 database:
114 members:
115 - host: ${_param:single_address}
116 discovery:
117 host: None
118 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100119 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200120 analytics:
121 host: ${_param:single_address}
122 cache:
123 host: 127.0.0.1
124 identity:
125 host: ${_param:openstack_control_address}
126 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100127 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +0200128 network:
129 host: ${_param:openstack_control_address}
130 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100131 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200132 analytics:
133 members:
134 - host: ${_param:single_address}
135 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100136 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +0100137 identity:
138 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200139 discovery:
140 host: None
141 database:
142 members:
143 - host: ${_param:single_address}
144 analytics:
145 members:
146 - host: ${_param:single_address}
147 message_queue:
148 host: ${_param:openstack_control_address}
Svimbaa1b24512018-12-13 10:55:29 +0100149 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +0200150 members:
151 - host: ${_param:openstack_control_address}
152 config:
153 members:
154 - host: ${_param:single_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100155 docker:
156 client:
157 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100158 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100159 status: up
160 pull: true
161 service:
162 controller:
163 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100164 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100165 volumes:
166 - /etc/contrail:/etc/contrail
Inessa Vasilevskaya88337442018-12-27 13:21:28 +0100167 - /etc/redis/redis_webui.conf:/etc/redis/redis.conf
Marek Celoudfa1fa512017-11-03 16:07:04 +0100168 - /var/lib/configdb:/var/lib/cassandra
169 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
170 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
171 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
172 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
173 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
174 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
175 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200176 - /var/log/contrail:/var/log/contrail
177 - /var/log/journal/contrail-controller:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100178 network_mode: "host"
179 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100180 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200181 env_file:
182 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100183 analytics:
184 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100185 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100186 network_mode: "host"
187 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100188 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +0100189 volumes:
190 - /etc/contrail:/etc/contrail
191 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +0200192 - /var/log/contrail:/var/log/contrail
193 - /var/log/journal/contrail-analytics:/var/log/journal
194 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
Marek Celoudfa1fa512017-11-03 16:07:04 +0100215 network_mode: "host"
216 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100217 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200218 env_file:
219 - contrail.env