blob: a9ae7877dc91a3d7e4e72d8708389190d83946f6 [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
Marek Celoudfa1fa512017-11-03 16:07:04 +010010 opencontrail_analytics_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-analytics
11 opencontrail_analyticsdb_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-analyticsdb
12 opencontrail_controller_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-controller
Marek Celouda2f29f02017-06-16 14:47:31 +020013# Temprorary fix for MOS9 packages to pin old version of kafka
14 linux:
15 system:
16 package:
Marek Celouda2f29f02017-06-16 14:47:31 +020017 contrail-api-cli:
18 version: latest
19 kernel:
20 modules:
21 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010022 job:
23 kafka_logs_cleanup:
24 command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
25 identifier: kafka_logs_cleanup
26 hour: 0
27 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020028 haproxy:
29 proxy:
30 listen:
31 contrail_api:
32 type: contrail-api
33 service_name: contrail
34 check: false
35 binds:
36 - address: ${_param:single_address}
37 port: 8082
38 servers:
39 - name: ctl01
40 host: ${_param:single_address}
41 port: 9100
42 params: check inter 2000 rise 2 fall 3
43 contrail_discovery:
44 type: contrail-api
45 service_name: contrail
46 binds:
47 - address: ${_param:single_address}
48 port: 5998
49 servers:
50 - name: ctl01
51 host: ${_param:single_address}
52 port: 9110
53 params: check inter 2000 rise 2 fall 3
54 contrail_config_stats:
55 type: contrail-config
56 service_name: contrail
57 format: listen
58 binds:
59 - address: '*'
60 port: 5937
61 user: haproxy
62 password: ${_param:opencontrail_stats_password}
63 contrail_openstack_stats:
64 type: contrail-config
65 service_name: contrail
66 format: listen
67 binds:
68 - address: '*'
69 port: 5936
70 user: haproxy
71 password: ${_param:opencontrail_stats_password}
72 contrail_collector_stats:
73 type: contrail-config
74 service_name: contrail
75 format: listen
76 binds:
77 - address: '*'
78 port: 5938
79 user: haproxy
80 password: ${_param:opencontrail_stats_password}
81 opencontrail:
82 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010083 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020084 identity:
85 host: ${_param:openstack_control_address}
86 network:
87 host: ${_param:openstack_control_address}
88 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010089 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020090 network:
91 host: ${_param:openstack_control_address}
92 bind:
93 address: ${_param:single_address}
94 discovery:
95 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020096 api:
97 host: ${_param:single_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020098 analytics:
99 members:
100 - host: ${_param:single_address}
101 message_queue:
102 members:
103 - host: ${_param:openstack_control_address}
104 identity:
105 region: ${_param:openstack_region}
106 host: ${_param:openstack_control_address}
107 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100108 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200109 analytics:
110 members:
111 - host: ${_param:single_address}
112 message_queue:
113 members:
114 - host: ${_param:openstack_control_address}
115 database:
116 members:
117 - host: ${_param:single_address}
118 discovery:
119 host: None
120 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100121 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200122 analytics:
123 host: ${_param:single_address}
124 cache:
125 host: 127.0.0.1
126 identity:
127 host: ${_param:openstack_control_address}
128 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100129 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +0200130 network:
131 host: ${_param:openstack_control_address}
132 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100133 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200134 analytics:
135 members:
136 - host: ${_param:single_address}
137 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100138 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +0100139 identity:
140 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200141 discovery:
142 host: None
143 database:
144 members:
145 - host: ${_param:single_address}
146 analytics:
147 members:
148 - host: ${_param:single_address}
149 message_queue:
150 host: ${_param:openstack_control_address}
151 members:
152 - host: ${_param:openstack_control_address}
153 config:
154 members:
155 - host: ${_param:single_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100156 docker:
157 client:
158 compose:
159 opencontrail_api:
160 status: up
161 pull: true
162 service:
163 controller:
164 image: ${_param:opencontrail_controller_image}
165 volumes:
166 - /etc/contrail:/etc/contrail
167 - /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
175 network_mode: "host"
176 privileged: true
177 analytics:
178 image: ${_param:opencontrail_analytics_image}
179 network_mode: "host"
180 privileged: true
181 volumes:
182 - /etc/contrail:/etc/contrail
183 - /etc/redis/redis.conf:/etc/redis/redis.conf
184 analyticsdb:
185 image: ${_param:opencontrail_analyticsdb_image}
186 volumes:
187 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
188 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
189 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
190 - /etc/contrail:/etc/contrail
191 - /var/lib/analyticsdb:/var/lib/cassandra
192 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
193 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
194 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
195 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
196 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100197 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100198 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
199 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
200 network_mode: "host"
201 privileged: true