blob: 4f1127f206dd22f1006b180b095cd1c14a1dda90 [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
Marek Celoudfa1fa512017-11-03 16:07:04 +010025 analytics_vip_address: ${_param:opencontrail_analytics_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020026# Temprorary fix for MOS9 packages to pin old version of kafka
27 linux:
28 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020029 kernel:
30 modules:
31 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010032 job:
33 kafka_logs_cleanup:
34 command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
35 identifier: kafka_logs_cleanup
36 hour: 0
37 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020038 opencontrail:
39 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010040 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020041 identity:
42 host: ${_param:openstack_control_address}
43 network:
44 host: ${_param:openstack_control_address}
45 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +010046 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020047 discovery:
48 host: None
Marek Celouda2f29f02017-06-16 14:47:31 +020049 analytics:
50 members:
51 - host: ${_param:cluster_node01_address}
52 - host: ${_param:cluster_node02_address}
53 - host: ${_param:cluster_node03_address}
54 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020055 host: ${_param:opencontrail_message_queue_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020056 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020057 - host: ${_param:opencontrail_message_queue_node01_address}
58 - host: ${_param:opencontrail_message_queue_node02_address}
59 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020060 config:
61 members:
62 - host: ${_param:cluster_node01_address}
63 - host: ${_param:cluster_node02_address}
64 - host: ${_param:cluster_node03_address}
65 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010066 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020067 discovery:
68 host: None
69 analytics:
70 members:
71 - host: ${_param:cluster_node01_address}
72 - host: ${_param:cluster_node02_address}
73 - host: ${_param:cluster_node03_address}
74 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010075 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020076 network:
77 host: ${_param:openstack_control_address}
78 bind:
79 address: ${_param:cluster_local_address}
80 discovery:
81 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020082 api:
83 host: ${_param:opencontrail_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020084 analytics:
85 members:
86 - host: ${_param:cluster_node01_address}
87 - host: ${_param:cluster_node02_address}
88 - host: ${_param:cluster_node03_address}
89 message_queue:
90 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020091 - host: ${_param:opencontrail_message_queue_node01_address}
92 - host: ${_param:opencontrail_message_queue_node02_address}
93 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020094 identity:
95 region: ${_param:openstack_region}
96 host: ${_param:openstack_control_address}
97 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +010098 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +010099 identity:
100 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200101 analytics:
102 members:
103 - host: ${_param:cluster_node01_address}
104 - host: ${_param:cluster_node02_address}
105 - host: ${_param:cluster_node03_address}
106 message_queue:
107 members:
Marek Celoudcba1a442017-06-20 17:14:34 +0200108 - host: ${_param:opencontrail_message_queue_node01_address}
109 - host: ${_param:opencontrail_message_queue_node02_address}
110 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200111 database:
112 members:
113 - host: ${_param:cluster_node01_address}
114 - host: ${_param:cluster_node02_address}
115 - host: ${_param:cluster_node03_address}
116 discovery:
117 host: None
118 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100119 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200120 analytics:
121 host: ${_param:opencontrail_control_address}
122 cache:
123 host: 127.0.0.1
124 identity:
125 host: ${_param:openstack_control_address}
126 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100127 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +0200128 network:
129 host: ${_param:openstack_control_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100130 docker:
131 client:
132 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100133 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100134 status: up
135 pull: true
136 service:
137 controller:
138 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100139 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100140 volumes:
141 - /etc/contrail:/etc/contrail
142 - /var/lib/configdb:/var/lib/cassandra
143 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
144 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
145 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
146 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
147 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
148 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
149 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200150 - /var/log/contrail:/var/log/contrail
151 - /var/log/journal/contrail-controller:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100152 network_mode: "host"
153 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100154 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200155 env_file:
156 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100157 analytics:
158 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100159 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100160 network_mode: "host"
161 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100162 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +0100163 volumes:
164 - /etc/contrail:/etc/contrail
165 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +0200166 - /var/log/contrail:/var/log/contrail
167 - /var/log/journal/contrail-analytics:/var/log/journal
168 env_file:
169 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100170 analyticsdb:
171 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100172 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100173 volumes:
174 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
175 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
176 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
177 - /etc/contrail:/etc/contrail
178 - /var/lib/analyticsdb:/var/lib/cassandra
179 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
180 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
181 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
182 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
183 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100184 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100185 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
186 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200187 - /var/log/contrail:/var/log/contrail
188 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100189 network_mode: "host"
190 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100191 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200192 env_file:
193 - contrail.env