blob: 1409a659ff5709d261232ad5e526672e703b8574 [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'
Marek Celouda2f29f02017-06-16 14:47:31 +020012 opencontrail_version: 4.0
13 linux_repo_contrail_component: oc40
Petr Jedinýeb7fceb2018-06-21 19:17:27 +020014 opencontrail_image_tag: latest
Marek Celoudcba1a442017-06-20 17:14:34 +020015 opencontrail_message_queue_node01_address: ${_param:openstack_control_node01_address}
16 opencontrail_message_queue_node02_address: ${_param:openstack_control_node02_address}
17 opencontrail_message_queue_node03_address: ${_param:openstack_control_node03_address}
18 opencontrail_message_queue_address: ${_param:openstack_control_address}
Svimbaa1b24512018-12-13 10:55:29 +010019 opencontrail_message_queue_password: guest
azvyagintsev16ca7ce2018-08-21 17:20:33 +030020 opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag}
21 opencontrail_analyticsdb_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_image_tag}
22 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 +010023 opencontrail_controller_container_name: opencontrail_controller_1
24 opencontrail_analytics_container_name: opencontrail_analytics_1
25 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Svimba483e8092018-09-18 17:39:04 +020026 opencontrail_api_workers_count: 6
Marek Celoudfa1fa512017-11-03 16:07:04 +010027 analytics_vip_address: ${_param:opencontrail_analytics_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020028# Temprorary fix for MOS9 packages to pin old version of kafka
29 linux:
30 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020031 kernel:
32 modules:
33 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010034 job:
35 kafka_logs_cleanup:
Anton Samoylov73f12db2018-12-12 18:34:24 +040036 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 +010037 identifier: kafka_logs_cleanup
38 hour: 0
39 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020040 opencontrail:
41 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010042 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020043 identity:
44 host: ${_param:openstack_control_address}
45 network:
46 host: ${_param:openstack_control_address}
47 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +010048 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020049 discovery:
50 host: None
Marek Celouda2f29f02017-06-16 14:47:31 +020051 analytics:
52 members:
53 - host: ${_param:cluster_node01_address}
54 - host: ${_param:cluster_node02_address}
55 - host: ${_param:cluster_node03_address}
56 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020057 host: ${_param:opencontrail_message_queue_address}
Svimbaa1b24512018-12-13 10:55:29 +010058 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020059 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020060 - host: ${_param:opencontrail_message_queue_node01_address}
61 - host: ${_param:opencontrail_message_queue_node02_address}
62 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020063 config:
64 members:
65 - host: ${_param:cluster_node01_address}
66 - host: ${_param:cluster_node02_address}
67 - host: ${_param:cluster_node03_address}
68 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010069 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020070 discovery:
71 host: None
72 analytics:
73 members:
74 - host: ${_param:cluster_node01_address}
75 - host: ${_param:cluster_node02_address}
76 - host: ${_param:cluster_node03_address}
77 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010078 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020079 network:
80 host: ${_param:openstack_control_address}
81 bind:
82 address: ${_param:cluster_local_address}
83 discovery:
84 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020085 api:
86 host: ${_param:opencontrail_control_address}
Svimba483e8092018-09-18 17:39:04 +020087 workers_count: ${_param:opencontrail_api_workers_count}
Marek Celouda2f29f02017-06-16 14:47:31 +020088 analytics:
89 members:
90 - host: ${_param:cluster_node01_address}
91 - host: ${_param:cluster_node02_address}
92 - host: ${_param:cluster_node03_address}
93 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +010094 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020095 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020096 - host: ${_param:opencontrail_message_queue_node01_address}
97 - host: ${_param:opencontrail_message_queue_node02_address}
98 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020099 identity:
100 region: ${_param:openstack_region}
101 host: ${_param:openstack_control_address}
102 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100103 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +0100104 identity:
105 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200106 analytics:
107 members:
108 - host: ${_param:cluster_node01_address}
109 - host: ${_param:cluster_node02_address}
110 - host: ${_param:cluster_node03_address}
111 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +0100112 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +0200113 members:
Marek Celoudcba1a442017-06-20 17:14:34 +0200114 - host: ${_param:opencontrail_message_queue_node01_address}
115 - host: ${_param:opencontrail_message_queue_node02_address}
116 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200117 database:
118 members:
119 - host: ${_param:cluster_node01_address}
120 - host: ${_param:cluster_node02_address}
121 - host: ${_param:cluster_node03_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:opencontrail_control_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}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100136 docker:
137 client:
138 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100139 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100140 status: up
141 pull: true
142 service:
143 controller:
144 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100145 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100146 volumes:
147 - /etc/contrail:/etc/contrail
148 - /var/lib/configdb:/var/lib/cassandra
149 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
150 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
151 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
152 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
153 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
154 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
155 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200156 - /var/log/contrail:/var/log/contrail
157 - /var/log/journal/contrail-controller:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100158 network_mode: "host"
159 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100160 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200161 env_file:
162 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100163 analytics:
164 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100165 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100166 network_mode: "host"
167 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100168 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +0100169 volumes:
170 - /etc/contrail:/etc/contrail
171 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +0200172 - /var/log/contrail:/var/log/contrail
173 - /var/log/journal/contrail-analytics:/var/log/journal
174 env_file:
175 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100176 analyticsdb:
177 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100178 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100179 volumes:
180 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
181 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
182 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
183 - /etc/contrail:/etc/contrail
184 - /var/lib/analyticsdb:/var/lib/cassandra
185 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
186 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
Anton Samoylov73f12db2018-12-12 18:34:24 +0400187 - ${_param:opencontrail_kafka_config_dir}/server.properties:${_param:opencontrail_kafka_config_dir}/server.properties
188 - ${_param:opencontrail_kafka_config_dir}/consumer.properties:${_param:opencontrail_kafka_config_dir}/consumer.properties
189 - ${_param:opencontrail_kafka_config_dir}/zookeeper.properties:${_param:opencontrail_kafka_config_dir}/zookeeper.properties
190 - ${_param:opencontrail_kafka_log_dir}:${_param:opencontrail_kafka_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100191 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
192 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200193 - /var/log/contrail:/var/log/contrail
194 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100195 network_mode: "host"
196 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100197 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200198 env_file:
199 - contrail.env