blob: c97196f9563447de5eb3637216efb14938fe7bfc [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
5- system.haproxy.proxy.listen.opencontrail.control
6- system.haproxy.proxy.listen.opencontrail.analytics
7parameters:
8 _param:
azvyagintsev16ca7ce2018-08-21 17:20:33 +03009 mcp_docker_registry: 'docker-prod-local.artifactory.mirantis.com'
Petr Jediný12624882017-12-04 17:06:12 +010010 opencontrail_kafka_log_cleanup_mtime: '+7'
11 opencontrail_kafka_log_cleanup_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}
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
Svimba0bedaa32018-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}
Marek Celouda2f29f02017-06-16 14:47:31 +020057 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020058 - host: ${_param:opencontrail_message_queue_node01_address}
59 - host: ${_param:opencontrail_message_queue_node02_address}
60 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020061 config:
62 members:
63 - host: ${_param:cluster_node01_address}
64 - host: ${_param:cluster_node02_address}
65 - host: ${_param:cluster_node03_address}
66 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010067 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020068 discovery:
69 host: None
70 analytics:
71 members:
72 - host: ${_param:cluster_node01_address}
73 - host: ${_param:cluster_node02_address}
74 - host: ${_param:cluster_node03_address}
75 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010076 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020077 network:
78 host: ${_param:openstack_control_address}
79 bind:
80 address: ${_param:cluster_local_address}
81 discovery:
82 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020083 api:
84 host: ${_param:opencontrail_control_address}
Svimba0bedaa32018-09-18 17:39:04 +020085 workers_count: ${_param:opencontrail_api_workers_count}
Marek Celouda2f29f02017-06-16 14:47:31 +020086 analytics:
87 members:
88 - host: ${_param:cluster_node01_address}
89 - host: ${_param:cluster_node02_address}
90 - host: ${_param:cluster_node03_address}
91 message_queue:
92 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020093 - host: ${_param:opencontrail_message_queue_node01_address}
94 - host: ${_param:opencontrail_message_queue_node02_address}
95 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020096 identity:
97 region: ${_param:openstack_region}
98 host: ${_param:openstack_control_address}
99 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100100 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +0100101 identity:
102 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200103 analytics:
104 members:
105 - host: ${_param:cluster_node01_address}
106 - host: ${_param:cluster_node02_address}
107 - host: ${_param:cluster_node03_address}
108 message_queue:
109 members:
Marek Celoudcba1a442017-06-20 17:14:34 +0200110 - host: ${_param:opencontrail_message_queue_node01_address}
111 - host: ${_param:opencontrail_message_queue_node02_address}
112 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200113 database:
114 members:
115 - host: ${_param:cluster_node01_address}
116 - host: ${_param:cluster_node02_address}
117 - host: ${_param:cluster_node03_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:opencontrail_control_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}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100132 docker:
133 client:
134 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100135 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100136 status: up
137 pull: true
138 service:
139 controller:
140 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100141 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100142 volumes:
143 - /etc/contrail:/etc/contrail
144 - /var/lib/configdb:/var/lib/cassandra
145 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
146 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
147 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
148 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
149 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
150 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
151 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200152 - /var/log/contrail:/var/log/contrail
153 - /var/log/journal/contrail-controller:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100154 network_mode: "host"
155 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100156 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200157 env_file:
158 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100159 analytics:
160 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100161 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100162 network_mode: "host"
163 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100164 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +0100165 volumes:
166 - /etc/contrail:/etc/contrail
167 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +0200168 - /var/log/contrail:/var/log/contrail
169 - /var/log/journal/contrail-analytics:/var/log/journal
170 env_file:
171 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100172 analyticsdb:
173 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100174 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100175 volumes:
176 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
177 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
178 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
179 - /etc/contrail:/etc/contrail
180 - /var/lib/analyticsdb:/var/lib/cassandra
181 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
182 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
183 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
184 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
185 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100186 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100187 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
188 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200189 - /var/log/contrail:/var/log/contrail
190 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100191 network_mode: "host"
192 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100193 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200194 env_file:
195 - contrail.env