blob: 95b0d902965a017f8f29575a988ae2f2a9037074 [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:
Anton Samoylov73f12db2018-12-12 18:34:24 +04009 opencontrail_kafka_config_dir: '/usr/share/kafka/config'
Petr Jediný12624882017-12-04 17:06:12 +010010 opencontrail_kafka_log_cleanup_mtime: '+7'
Anton Samoylov73f12db2018-12-12 18:34:24 +040011 opencontrail_kafka_log_dir: '/usr/share/kafka/logs'
Inessa Vasilevskayabd0a0dd2018-11-19 15:26:56 +010012 opencontrail_host_analyticsdb_log_dir: '/var/log/analyticsdb'
13 opencontrail_host_configdb_log_dir: '/var/log/configdb'
14 opencontrail_cassandra_log_dir: '/var/log/cassandra'
15 opencontrail_zookeeper_log_dir: '/var/log/zookeeper'
Marek Celouda2f29f02017-06-16 14:47:31 +020016 opencontrail_version: 4.0
17 linux_repo_contrail_component: oc40
Petr Jedinýeb7fceb2018-06-21 19:17:27 +020018 opencontrail_image_tag: latest
Marek Celoudcba1a442017-06-20 17:14:34 +020019 opencontrail_message_queue_node01_address: ${_param:openstack_control_node01_address}
20 opencontrail_message_queue_node02_address: ${_param:openstack_control_node02_address}
21 opencontrail_message_queue_node03_address: ${_param:openstack_control_node03_address}
22 opencontrail_message_queue_address: ${_param:openstack_control_address}
Svimbaa1b24512018-12-13 10:55:29 +010023 opencontrail_message_queue_password: guest
azvyagintsev16ca7ce2018-08-21 17:20:33 +030024 opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag}
25 opencontrail_analyticsdb_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_image_tag}
26 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 +010027 opencontrail_controller_container_name: opencontrail_controller_1
28 opencontrail_analytics_container_name: opencontrail_analytics_1
29 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Svimba483e8092018-09-18 17:39:04 +020030 opencontrail_api_workers_count: 6
Marek Celoudfa1fa512017-11-03 16:07:04 +010031 analytics_vip_address: ${_param:opencontrail_analytics_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020032# Temprorary fix for MOS9 packages to pin old version of kafka
33 linux:
34 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020035 kernel:
36 modules:
37 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010038 job:
39 kafka_logs_cleanup:
Anton Samoylov73f12db2018-12-12 18:34:24 +040040 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 +010041 identifier: kafka_logs_cleanup
42 hour: 0
43 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020044 opencontrail:
45 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010046 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020047 identity:
48 host: ${_param:openstack_control_address}
49 network:
50 host: ${_param:openstack_control_address}
51 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +010052 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020053 discovery:
54 host: None
Marek Celouda2f29f02017-06-16 14:47:31 +020055 analytics:
56 members:
57 - host: ${_param:cluster_node01_address}
58 - host: ${_param:cluster_node02_address}
59 - host: ${_param:cluster_node03_address}
60 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020061 host: ${_param:opencontrail_message_queue_address}
Svimbaa1b24512018-12-13 10:55:29 +010062 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020063 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020064 - host: ${_param:opencontrail_message_queue_node01_address}
65 - host: ${_param:opencontrail_message_queue_node02_address}
66 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020067 config:
68 members:
69 - host: ${_param:cluster_node01_address}
70 - host: ${_param:cluster_node02_address}
71 - host: ${_param:cluster_node03_address}
72 database:
Inessa Vasilevskayabd0a0dd2018-11-19 15:26:56 +010073 analyticsdb_log_dir: ${_param:opencontrail_host_analyticsdb_log_dir}
74 configdb_log_dir: ${_param:opencontrail_host_configdb_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +010075 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020076 discovery:
77 host: None
78 analytics:
79 members:
80 - host: ${_param:cluster_node01_address}
81 - host: ${_param:cluster_node02_address}
82 - host: ${_param:cluster_node03_address}
83 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010084 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020085 network:
86 host: ${_param:openstack_control_address}
87 bind:
88 address: ${_param:cluster_local_address}
89 discovery:
90 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020091 api:
92 host: ${_param:opencontrail_control_address}
Svimba483e8092018-09-18 17:39:04 +020093 workers_count: ${_param:opencontrail_api_workers_count}
Marek Celouda2f29f02017-06-16 14:47:31 +020094 analytics:
95 members:
96 - host: ${_param:cluster_node01_address}
97 - host: ${_param:cluster_node02_address}
98 - host: ${_param:cluster_node03_address}
99 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +0100100 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +0200101 members:
Marek Celoudcba1a442017-06-20 17:14:34 +0200102 - host: ${_param:opencontrail_message_queue_node01_address}
103 - host: ${_param:opencontrail_message_queue_node02_address}
104 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200105 identity:
106 region: ${_param:openstack_region}
107 host: ${_param:openstack_control_address}
108 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100109 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +0100110 identity:
111 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200112 analytics:
113 members:
114 - host: ${_param:cluster_node01_address}
115 - host: ${_param:cluster_node02_address}
116 - host: ${_param:cluster_node03_address}
117 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +0100118 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +0200119 members:
Marek Celoudcba1a442017-06-20 17:14:34 +0200120 - host: ${_param:opencontrail_message_queue_node01_address}
121 - host: ${_param:opencontrail_message_queue_node02_address}
122 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200123 database:
124 members:
125 - host: ${_param:cluster_node01_address}
126 - host: ${_param:cluster_node02_address}
127 - host: ${_param:cluster_node03_address}
128 discovery:
129 host: None
130 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100131 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200132 analytics:
133 host: ${_param:opencontrail_control_address}
134 cache:
135 host: 127.0.0.1
136 identity:
137 host: ${_param:openstack_control_address}
138 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100139 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +0200140 network:
141 host: ${_param:openstack_control_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100142 docker:
143 client:
144 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100145 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100146 status: up
147 pull: true
148 service:
149 controller:
150 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100151 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100152 volumes:
153 - /etc/contrail:/etc/contrail
Inessa Vasilevskayaa5610b22018-12-27 13:21:28 +0100154 - /etc/redis/redis_webui.conf:/etc/redis/redis.conf
Marek Celoudfa1fa512017-11-03 16:07:04 +0100155 - /var/lib/configdb:/var/lib/cassandra
156 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
157 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
158 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
159 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
160 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
161 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
162 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200163 - /var/log/contrail:/var/log/contrail
164 - /var/log/journal/contrail-controller:/var/log/journal
Inessa Vasilevskayabd0a0dd2018-11-19 15:26:56 +0100165 - ${_param:opencontrail_host_configdb_log_dir}/cassandra:${_param:opencontrail_cassandra_log_dir}
166 - ${_param:opencontrail_host_configdb_log_dir}/zookeeper:${_param:opencontrail_zookeeper_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100167 network_mode: "host"
168 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100169 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200170 env_file:
171 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100172 analytics:
173 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100174 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100175 network_mode: "host"
176 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100177 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +0100178 volumes:
179 - /etc/contrail:/etc/contrail
180 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +0200181 - /var/log/contrail:/var/log/contrail
182 - /var/log/journal/contrail-analytics:/var/log/journal
183 env_file:
184 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100185 analyticsdb:
186 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100187 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100188 volumes:
189 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
190 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
191 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
192 - /etc/contrail:/etc/contrail
193 - /var/lib/analyticsdb:/var/lib/cassandra
194 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
195 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
Anton Samoylov73f12db2018-12-12 18:34:24 +0400196 - ${_param:opencontrail_kafka_config_dir}/server.properties:${_param:opencontrail_kafka_config_dir}/server.properties
197 - ${_param:opencontrail_kafka_config_dir}/consumer.properties:${_param:opencontrail_kafka_config_dir}/consumer.properties
198 - ${_param:opencontrail_kafka_config_dir}/zookeeper.properties:${_param:opencontrail_kafka_config_dir}/zookeeper.properties
199 - ${_param:opencontrail_kafka_log_dir}:${_param:opencontrail_kafka_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100200 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
201 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200202 - /var/log/contrail:/var/log/contrail
203 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Inessa Vasilevskayabd0a0dd2018-11-19 15:26:56 +0100204 - ${_param:opencontrail_host_analyticsdb_log_dir}/cassandra:${_param:opencontrail_cassandra_log_dir}
205 - ${_param:opencontrail_host_analyticsdb_log_dir}/zookeeper:${_param:opencontrail_zookeeper_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100206 network_mode: "host"
207 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100208 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200209 env_file:
210 - contrail.env