blob: fbf345bfd553a765d46cac15d60441f7f66eab88 [file] [log] [blame]
Marek Celouda2f29f02017-06-16 14:47:31 +02001classes:
2- service.haproxy.proxy.single
3- service.keepalived.cluster.single
4- service.opencontrail.control.cluster
Anton Samoylovb7d48852018-10-11 23:59:56 +04005- system.haproxy.proxy.listen.opencontrail.control4_0
Marek Celouda2f29f02017-06-16 14:47:31 +02006- system.haproxy.proxy.listen.opencontrail.analytics
7parameters:
8 _param:
Petr Jediný12624882017-12-04 17:06:12 +01009 opencontrail_kafka_log_cleanup_mtime: '+7'
10 opencontrail_kafka_log_cleanup_dir: '/usr/share/kafka/logs/'
Marek Celouda2f29f02017-06-16 14:47:31 +020011 opencontrail_version: 4.0
12 linux_repo_contrail_component: oc40
Petr Jedinýeb7fceb2018-06-21 19:17:27 +020013 opencontrail_image_tag: latest
Marek Celoudcba1a442017-06-20 17:14:34 +020014 opencontrail_message_queue_node01_address: ${_param:openstack_control_node01_address}
15 opencontrail_message_queue_node02_address: ${_param:openstack_control_node02_address}
16 opencontrail_message_queue_node03_address: ${_param:openstack_control_node03_address}
17 opencontrail_message_queue_address: ${_param:openstack_control_address}
Svimbaa1b24512018-12-13 10:55:29 +010018 opencontrail_message_queue_password: guest
azvyagintsev16ca7ce2018-08-21 17:20:33 +030019 opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag}
20 opencontrail_analyticsdb_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_image_tag}
21 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 +010022 opencontrail_controller_container_name: opencontrail_controller_1
23 opencontrail_analytics_container_name: opencontrail_analytics_1
24 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Svimba483e8092018-09-18 17:39:04 +020025 opencontrail_api_workers_count: 6
Marek Celoudfa1fa512017-11-03 16:07:04 +010026 analytics_vip_address: ${_param:opencontrail_analytics_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020027# Temprorary fix for MOS9 packages to pin old version of kafka
28 linux:
29 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020030 kernel:
31 modules:
32 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010033 job:
34 kafka_logs_cleanup:
35 command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
36 identifier: kafka_logs_cleanup
37 hour: 0
38 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020039 opencontrail:
40 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010041 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020042 identity:
43 host: ${_param:openstack_control_address}
44 network:
45 host: ${_param:openstack_control_address}
46 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +010047 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020048 discovery:
49 host: None
Marek Celouda2f29f02017-06-16 14:47:31 +020050 analytics:
51 members:
52 - host: ${_param:cluster_node01_address}
53 - host: ${_param:cluster_node02_address}
54 - host: ${_param:cluster_node03_address}
55 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020056 host: ${_param:opencontrail_message_queue_address}
Svimbaa1b24512018-12-13 10:55:29 +010057 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020058 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020059 - host: ${_param:opencontrail_message_queue_node01_address}
60 - host: ${_param:opencontrail_message_queue_node02_address}
61 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020062 config:
63 members:
64 - host: ${_param:cluster_node01_address}
65 - host: ${_param:cluster_node02_address}
66 - host: ${_param:cluster_node03_address}
67 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010068 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020069 discovery:
70 host: None
71 analytics:
72 members:
73 - host: ${_param:cluster_node01_address}
74 - host: ${_param:cluster_node02_address}
75 - host: ${_param:cluster_node03_address}
76 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010077 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020078 network:
79 host: ${_param:openstack_control_address}
80 bind:
81 address: ${_param:cluster_local_address}
82 discovery:
83 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020084 api:
85 host: ${_param:opencontrail_control_address}
Svimba483e8092018-09-18 17:39:04 +020086 workers_count: ${_param:opencontrail_api_workers_count}
Marek Celouda2f29f02017-06-16 14:47:31 +020087 analytics:
88 members:
89 - host: ${_param:cluster_node01_address}
90 - host: ${_param:cluster_node02_address}
91 - host: ${_param:cluster_node03_address}
92 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +010093 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020094 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020095 - host: ${_param:opencontrail_message_queue_node01_address}
96 - host: ${_param:opencontrail_message_queue_node02_address}
97 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020098 identity:
99 region: ${_param:openstack_region}
100 host: ${_param:openstack_control_address}
101 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100102 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +0100103 identity:
104 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200105 analytics:
106 members:
107 - host: ${_param:cluster_node01_address}
108 - host: ${_param:cluster_node02_address}
109 - host: ${_param:cluster_node03_address}
110 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +0100111 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +0200112 members:
Marek Celoudcba1a442017-06-20 17:14:34 +0200113 - host: ${_param:opencontrail_message_queue_node01_address}
114 - host: ${_param:opencontrail_message_queue_node02_address}
115 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200116 database:
117 members:
118 - host: ${_param:cluster_node01_address}
119 - host: ${_param:cluster_node02_address}
120 - host: ${_param:cluster_node03_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:opencontrail_control_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}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100135 docker:
136 client:
137 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100138 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100139 status: up
140 pull: true
141 service:
142 controller:
143 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100144 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100145 volumes:
146 - /etc/contrail:/etc/contrail
147 - /var/lib/configdb:/var/lib/cassandra
148 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
149 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
150 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
151 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
152 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
153 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
154 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200155 - /var/log/contrail:/var/log/contrail
156 - /var/log/journal/contrail-controller:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100157 network_mode: "host"
158 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100159 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200160 env_file:
161 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100162 analytics:
163 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100164 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100165 network_mode: "host"
166 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100167 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +0100168 volumes:
169 - /etc/contrail:/etc/contrail
170 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +0200171 - /var/log/contrail:/var/log/contrail
172 - /var/log/journal/contrail-analytics:/var/log/journal
173 env_file:
174 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100175 analyticsdb:
176 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100177 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100178 volumes:
179 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
180 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
181 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
182 - /etc/contrail:/etc/contrail
183 - /var/lib/analyticsdb:/var/lib/cassandra
184 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
185 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
186 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
187 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
188 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100189 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100190 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
191 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200192 - /var/log/contrail:/var/log/contrail
193 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100194 network_mode: "host"
195 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100196 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200197 env_file:
198 - contrail.env