blob: df551ef23b7fc2866c5e41a3d2dd938b47692809 [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
psvimbersky1d9f0312018-01-10 16:09:31 +010011 opencontrail_analytics_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics
12 opencontrail_analyticsdb_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb
13 opencontrail_controller_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-controller
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010014 opencontrail_controller_container_name: opencontrail_controller_1
15 opencontrail_analytics_container_name: opencontrail_analytics_1
16 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Marek Celouda2f29f02017-06-16 14:47:31 +020017# Temprorary fix for MOS9 packages to pin old version of kafka
18 linux:
19 system:
20 package:
Marek Celouda2f29f02017-06-16 14:47:31 +020021 contrail-api-cli:
22 version: latest
23 kernel:
24 modules:
25 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010026 job:
27 kafka_logs_cleanup:
28 command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
29 identifier: kafka_logs_cleanup
30 hour: 0
31 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020032 haproxy:
33 proxy:
34 listen:
35 contrail_api:
36 type: contrail-api
37 service_name: contrail
38 check: false
39 binds:
40 - address: ${_param:single_address}
41 port: 8082
42 servers:
43 - name: ctl01
44 host: ${_param:single_address}
45 port: 9100
46 params: check inter 2000 rise 2 fall 3
47 contrail_discovery:
48 type: contrail-api
49 service_name: contrail
50 binds:
51 - address: ${_param:single_address}
52 port: 5998
53 servers:
54 - name: ctl01
55 host: ${_param:single_address}
56 port: 9110
57 params: check inter 2000 rise 2 fall 3
58 contrail_config_stats:
59 type: contrail-config
60 service_name: contrail
61 format: listen
62 binds:
63 - address: '*'
64 port: 5937
65 user: haproxy
66 password: ${_param:opencontrail_stats_password}
67 contrail_openstack_stats:
68 type: contrail-config
69 service_name: contrail
70 format: listen
71 binds:
72 - address: '*'
73 port: 5936
74 user: haproxy
75 password: ${_param:opencontrail_stats_password}
76 contrail_collector_stats:
77 type: contrail-config
78 service_name: contrail
79 format: listen
80 binds:
81 - address: '*'
82 port: 5938
83 user: haproxy
84 password: ${_param:opencontrail_stats_password}
85 opencontrail:
86 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010087 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020088 identity:
89 host: ${_param:openstack_control_address}
90 network:
91 host: ${_param:openstack_control_address}
92 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010093 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020094 network:
95 host: ${_param:openstack_control_address}
96 bind:
97 address: ${_param:single_address}
98 discovery:
99 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +0200100 api:
101 host: ${_param:single_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200102 analytics:
103 members:
104 - host: ${_param:single_address}
105 message_queue:
106 members:
107 - host: ${_param:openstack_control_address}
108 identity:
109 region: ${_param:openstack_region}
110 host: ${_param:openstack_control_address}
111 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100112 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200113 analytics:
114 members:
115 - host: ${_param:single_address}
116 message_queue:
117 members:
118 - host: ${_param:openstack_control_address}
119 database:
120 members:
121 - host: ${_param:single_address}
122 discovery:
123 host: None
124 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100125 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200126 analytics:
127 host: ${_param:single_address}
128 cache:
129 host: 127.0.0.1
130 identity:
131 host: ${_param:openstack_control_address}
132 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100133 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +0200134 network:
135 host: ${_param:openstack_control_address}
136 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100137 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200138 analytics:
139 members:
140 - host: ${_param:single_address}
141 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100142 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +0100143 identity:
144 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200145 discovery:
146 host: None
147 database:
148 members:
149 - host: ${_param:single_address}
150 analytics:
151 members:
152 - host: ${_param:single_address}
153 message_queue:
154 host: ${_param:openstack_control_address}
155 members:
156 - host: ${_param:openstack_control_address}
157 config:
158 members:
159 - host: ${_param:single_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100160 docker:
161 client:
162 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100163 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100164 status: up
165 pull: true
166 service:
167 controller:
168 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100169 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100170 volumes:
171 - /etc/contrail:/etc/contrail
172 - /var/lib/configdb:/var/lib/cassandra
173 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
174 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
175 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
176 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
177 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
178 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
179 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
180 network_mode: "host"
181 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100182 restart: always
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
192 analyticsdb:
193 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100194 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100195 volumes:
196 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
197 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
198 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
199 - /etc/contrail:/etc/contrail
200 - /var/lib/analyticsdb:/var/lib/cassandra
201 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
202 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
203 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
204 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
205 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100206 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100207 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
208 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
209 network_mode: "host"
210 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100211 restart: always