blob: 64cbf147f99b4154256243ac6474117e286336a0 [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 Vasilevskayadca068d2018-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
Marek Celoudcba1a442017-06-20 17:14:34 +020018 opencontrail_message_queue_node01_address: ${_param:openstack_control_node01_address}
19 opencontrail_message_queue_node02_address: ${_param:openstack_control_node02_address}
20 opencontrail_message_queue_node03_address: ${_param:openstack_control_node03_address}
21 opencontrail_message_queue_address: ${_param:openstack_control_address}
Svimbaa1b24512018-12-13 10:55:29 +010022 opencontrail_message_queue_password: guest
Anton Samoylovf05f9a82019-03-28 16:38:41 +040023 opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_docker_image_tag}
24 opencontrail_analyticsdb_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_docker_image_tag}
25 opencontrail_controller_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-controller:${_param:opencontrail_docker_image_tag}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010026 opencontrail_controller_container_name: opencontrail_controller_1
27 opencontrail_analytics_container_name: opencontrail_analytics_1
28 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Sergey Kreys893f09b2019-02-14 12:38:18 +000029 opencontrail_api_workers_count: 6
Marek Celoudfa1fa512017-11-03 16:07:04 +010030 analytics_vip_address: ${_param:opencontrail_analytics_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020031# Temprorary fix for MOS9 packages to pin old version of kafka
32 linux:
33 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020034 kernel:
35 modules:
36 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010037 job:
38 kafka_logs_cleanup:
Anton Samoylov73f12db2018-12-12 18:34:24 +040039 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 +010040 identifier: kafka_logs_cleanup
41 hour: 0
42 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020043 opencontrail:
44 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010045 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020046 identity:
47 host: ${_param:openstack_control_address}
48 network:
49 host: ${_param:openstack_control_address}
50 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +010051 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020052 discovery:
53 host: None
Marek Celouda2f29f02017-06-16 14:47:31 +020054 analytics:
55 members:
56 - host: ${_param:cluster_node01_address}
57 - host: ${_param:cluster_node02_address}
58 - host: ${_param:cluster_node03_address}
59 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020060 host: ${_param:opencontrail_message_queue_address}
Svimbaa1b24512018-12-13 10:55:29 +010061 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020062 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020063 - host: ${_param:opencontrail_message_queue_node01_address}
64 - host: ${_param:opencontrail_message_queue_node02_address}
65 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020066 config:
67 members:
68 - host: ${_param:cluster_node01_address}
69 - host: ${_param:cluster_node02_address}
70 - host: ${_param:cluster_node03_address}
71 database:
Inessa Vasilevskayadca068d2018-11-19 15:26:56 +010072 analyticsdb_log_dir: ${_param:opencontrail_host_analyticsdb_log_dir}
73 configdb_log_dir: ${_param:opencontrail_host_configdb_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +010074 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020075 discovery:
76 host: None
77 analytics:
78 members:
79 - host: ${_param:cluster_node01_address}
80 - host: ${_param:cluster_node02_address}
81 - host: ${_param:cluster_node03_address}
82 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010083 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020084 network:
85 host: ${_param:openstack_control_address}
86 bind:
87 address: ${_param:cluster_local_address}
88 discovery:
89 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020090 api:
91 host: ${_param:opencontrail_control_address}
Svimba483e8092018-09-18 17:39:04 +020092 workers_count: ${_param:opencontrail_api_workers_count}
Marek Celouda2f29f02017-06-16 14:47:31 +020093 analytics:
94 members:
95 - host: ${_param:cluster_node01_address}
96 - host: ${_param:cluster_node02_address}
97 - host: ${_param:cluster_node03_address}
98 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +010099 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +0200100 members:
Marek Celoudcba1a442017-06-20 17:14:34 +0200101 - host: ${_param:opencontrail_message_queue_node01_address}
102 - host: ${_param:opencontrail_message_queue_node02_address}
103 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200104 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 Celoud6d2f28c2017-12-01 15:09:47 +0100109 identity:
110 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200111 analytics:
112 members:
113 - host: ${_param:cluster_node01_address}
114 - host: ${_param:cluster_node02_address}
115 - host: ${_param:cluster_node03_address}
116 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +0100117 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +0200118 members:
Marek Celoudcba1a442017-06-20 17:14:34 +0200119 - host: ${_param:opencontrail_message_queue_node01_address}
120 - host: ${_param:opencontrail_message_queue_node02_address}
121 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200122 database:
123 members:
124 - host: ${_param:cluster_node01_address}
125 - host: ${_param:cluster_node02_address}
126 - host: ${_param:cluster_node03_address}
127 discovery:
128 host: None
129 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100130 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200131 analytics:
132 host: ${_param:opencontrail_control_address}
133 cache:
134 host: 127.0.0.1
135 identity:
136 host: ${_param:openstack_control_address}
137 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100138 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +0200139 network:
140 host: ${_param:openstack_control_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100141 docker:
142 client:
143 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100144 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100145 status: up
146 pull: true
147 service:
148 controller:
149 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100150 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100151 volumes:
152 - /etc/contrail:/etc/contrail
Inessa Vasilevskaya88337442018-12-27 13:21:28 +0100153 - /etc/redis/redis_webui.conf:/etc/redis/redis.conf
Marek Celoudfa1fa512017-11-03 16:07:04 +0100154 - /var/lib/configdb:/var/lib/cassandra
155 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
156 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
157 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
158 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
159 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
160 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
161 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200162 - /var/log/contrail:/var/log/contrail
163 - /var/log/journal/contrail-controller:/var/log/journal
Inessa Vasilevskayadca068d2018-11-19 15:26:56 +0100164 - ${_param:opencontrail_host_configdb_log_dir}/cassandra:${_param:opencontrail_cassandra_log_dir}
165 - ${_param:opencontrail_host_configdb_log_dir}/zookeeper:${_param:opencontrail_zookeeper_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100166 network_mode: "host"
167 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100168 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200169 env_file:
170 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100171 analytics:
172 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100173 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100174 network_mode: "host"
175 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100176 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +0100177 volumes:
178 - /etc/contrail:/etc/contrail
179 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +0200180 - /var/log/contrail:/var/log/contrail
181 - /var/log/journal/contrail-analytics:/var/log/journal
182 env_file:
183 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100184 analyticsdb:
185 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100186 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100187 volumes:
188 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
189 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
190 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
191 - /etc/contrail:/etc/contrail
192 - /var/lib/analyticsdb:/var/lib/cassandra
193 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
194 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
Anton Samoylov73f12db2018-12-12 18:34:24 +0400195 - ${_param:opencontrail_kafka_config_dir}/server.properties:${_param:opencontrail_kafka_config_dir}/server.properties
196 - ${_param:opencontrail_kafka_config_dir}/consumer.properties:${_param:opencontrail_kafka_config_dir}/consumer.properties
197 - ${_param:opencontrail_kafka_config_dir}/zookeeper.properties:${_param:opencontrail_kafka_config_dir}/zookeeper.properties
198 - ${_param:opencontrail_kafka_log_dir}:${_param:opencontrail_kafka_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100199 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
200 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200201 - /var/log/contrail:/var/log/contrail
202 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Inessa Vasilevskayadca068d2018-11-19 15:26:56 +0100203 - ${_param:opencontrail_host_analyticsdb_log_dir}/cassandra:${_param:opencontrail_cassandra_log_dir}
204 - ${_param:opencontrail_host_analyticsdb_log_dir}/zookeeper:${_param:opencontrail_zookeeper_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100205 network_mode: "host"
206 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100207 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200208 env_file:
209 - contrail.env