blob: a4fae18c605c260458550e7d950a340408a1be69 [file] [log] [blame]
Marek Celouda2f29f02017-06-16 14:47:31 +02001classes:
2- service.opencontrail.control.single
3- service.haproxy.proxy.single
4parameters:
5 _param:
Petr Jediný12624882017-12-04 17:06:12 +01006 opencontrail_kafka_log_cleanup_mtime: '+7'
7 opencontrail_kafka_log_cleanup_dir: '/usr/share/kafka/logs/'
Marek Celouda2f29f02017-06-16 14:47:31 +02008 opencontrail_version: 4.0
9 linux_repo_contrail_component: oc40
psvimbersky1d9f0312018-01-10 16:09:31 +010010 opencontrail_analytics_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics
11 opencontrail_analyticsdb_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb
12 opencontrail_controller_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-controller
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010013 opencontrail_controller_container_name: opencontrail_controller_1
14 opencontrail_analytics_container_name: opencontrail_analytics_1
15 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Marek Celouda2f29f02017-06-16 14:47:31 +020016# Temprorary fix for MOS9 packages to pin old version of kafka
17 linux:
18 system:
19 package:
Marek Celouda2f29f02017-06-16 14:47:31 +020020 contrail-api-cli:
21 version: latest
22 kernel:
23 modules:
24 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010025 job:
26 kafka_logs_cleanup:
27 command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
28 identifier: kafka_logs_cleanup
29 hour: 0
30 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020031 haproxy:
32 proxy:
33 listen:
34 contrail_api:
35 type: contrail-api
36 service_name: contrail
37 check: false
38 binds:
39 - address: ${_param:single_address}
40 port: 8082
41 servers:
42 - name: ctl01
43 host: ${_param:single_address}
44 port: 9100
45 params: check inter 2000 rise 2 fall 3
46 contrail_discovery:
47 type: contrail-api
48 service_name: contrail
49 binds:
50 - address: ${_param:single_address}
51 port: 5998
52 servers:
53 - name: ctl01
54 host: ${_param:single_address}
55 port: 9110
56 params: check inter 2000 rise 2 fall 3
57 contrail_config_stats:
58 type: contrail-config
59 service_name: contrail
60 format: listen
61 binds:
62 - address: '*'
63 port: 5937
64 user: haproxy
65 password: ${_param:opencontrail_stats_password}
66 contrail_openstack_stats:
67 type: contrail-config
68 service_name: contrail
69 format: listen
70 binds:
71 - address: '*'
72 port: 5936
73 user: haproxy
74 password: ${_param:opencontrail_stats_password}
75 contrail_collector_stats:
76 type: contrail-config
77 service_name: contrail
78 format: listen
79 binds:
80 - address: '*'
81 port: 5938
82 user: haproxy
83 password: ${_param:opencontrail_stats_password}
84 opencontrail:
85 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010086 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020087 identity:
88 host: ${_param:openstack_control_address}
89 network:
90 host: ${_param:openstack_control_address}
91 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010092 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020093 network:
94 host: ${_param:openstack_control_address}
95 bind:
96 address: ${_param:single_address}
97 discovery:
98 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020099 api:
100 host: ${_param:single_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200101 analytics:
102 members:
103 - host: ${_param:single_address}
104 message_queue:
105 members:
106 - host: ${_param:openstack_control_address}
107 identity:
108 region: ${_param:openstack_region}
109 host: ${_param:openstack_control_address}
110 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100111 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200112 analytics:
113 members:
114 - host: ${_param:single_address}
115 message_queue:
116 members:
117 - host: ${_param:openstack_control_address}
118 database:
119 members:
120 - host: ${_param:single_address}
121 discovery:
122 host: None
123 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100124 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200125 analytics:
126 host: ${_param:single_address}
127 cache:
128 host: 127.0.0.1
129 identity:
130 host: ${_param:openstack_control_address}
131 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100132 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +0200133 network:
134 host: ${_param:openstack_control_address}
135 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100136 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200137 analytics:
138 members:
139 - host: ${_param:single_address}
140 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100141 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +0100142 identity:
143 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200144 discovery:
145 host: None
146 database:
147 members:
148 - host: ${_param:single_address}
149 analytics:
150 members:
151 - host: ${_param:single_address}
152 message_queue:
153 host: ${_param:openstack_control_address}
154 members:
155 - host: ${_param:openstack_control_address}
156 config:
157 members:
158 - host: ${_param:single_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100159 docker:
160 client:
161 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100162 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100163 status: up
164 pull: true
165 service:
166 controller:
167 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100168 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100169 volumes:
170 - /etc/contrail:/etc/contrail
171 - /var/lib/configdb:/var/lib/cassandra
172 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
173 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
174 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
175 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
176 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
177 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
178 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
179 network_mode: "host"
180 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100181 restart: always
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
191 analyticsdb:
192 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100193 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100194 volumes:
195 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
196 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
197 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
198 - /etc/contrail:/etc/contrail
199 - /var/lib/analyticsdb:/var/lib/cassandra
200 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
201 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
202 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
203 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
204 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100205 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100206 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
207 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
208 network_mode: "host"
209 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100210 restart: always