blob: 05cf7d638f6337999fc2af2805b5bcc0a9722297 [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:
Petr Jediný12624882017-12-04 17:06:12 +01009 opencontrail_kafka_log_cleanup_mtime: '+7'
10 opencontrail_kafka_log_cleanup_dir: '/usr/share/kafka/logs/'
Marek Celouda2f29f02017-06-16 14:47:31 +020011 opencontrail_version: 4.0
12 linux_repo_contrail_component: oc40
Petr Jedinýeb7fceb2018-06-21 19:17:27 +020013 opencontrail_image_tag: latest
Marek Celoudcba1a442017-06-20 17:14:34 +020014 opencontrail_message_queue_node01_address: ${_param:openstack_control_node01_address}
15 opencontrail_message_queue_node02_address: ${_param:openstack_control_node02_address}
16 opencontrail_message_queue_node03_address: ${_param:openstack_control_node03_address}
17 opencontrail_message_queue_address: ${_param:openstack_control_address}
Petr Jedinýeb7fceb2018-06-21 19:17:27 +020018 opencontrail_analytics_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag}
19 opencontrail_analyticsdb_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_image_tag}
20 opencontrail_controller_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-controller:${_param:opencontrail_image_tag}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010021 opencontrail_controller_container_name: opencontrail_controller_1
22 opencontrail_analytics_container_name: opencontrail_analytics_1
23 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Marek Celoudfa1fa512017-11-03 16:07:04 +010024 analytics_vip_address: ${_param:opencontrail_analytics_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020025# Temprorary fix for MOS9 packages to pin old version of kafka
26 linux:
27 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020028 kernel:
29 modules:
30 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010031 job:
32 kafka_logs_cleanup:
33 command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
34 identifier: kafka_logs_cleanup
35 hour: 0
36 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020037 opencontrail:
38 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010039 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020040 identity:
41 host: ${_param:openstack_control_address}
42 network:
43 host: ${_param:openstack_control_address}
44 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +010045 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020046 discovery:
47 host: None
Marek Celouda2f29f02017-06-16 14:47:31 +020048 analytics:
49 members:
50 - host: ${_param:cluster_node01_address}
51 - host: ${_param:cluster_node02_address}
52 - host: ${_param:cluster_node03_address}
53 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020054 host: ${_param:opencontrail_message_queue_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020055 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020056 - host: ${_param:opencontrail_message_queue_node01_address}
57 - host: ${_param:opencontrail_message_queue_node02_address}
58 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020059 config:
60 members:
61 - host: ${_param:cluster_node01_address}
62 - host: ${_param:cluster_node02_address}
63 - host: ${_param:cluster_node03_address}
64 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010065 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020066 discovery:
67 host: None
68 analytics:
69 members:
70 - host: ${_param:cluster_node01_address}
71 - host: ${_param:cluster_node02_address}
72 - host: ${_param:cluster_node03_address}
73 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010074 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020075 network:
76 host: ${_param:openstack_control_address}
77 bind:
78 address: ${_param:cluster_local_address}
79 discovery:
80 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020081 api:
82 host: ${_param:opencontrail_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020083 analytics:
84 members:
85 - host: ${_param:cluster_node01_address}
86 - host: ${_param:cluster_node02_address}
87 - host: ${_param:cluster_node03_address}
88 message_queue:
89 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020090 - host: ${_param:opencontrail_message_queue_node01_address}
91 - host: ${_param:opencontrail_message_queue_node02_address}
92 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020093 identity:
94 region: ${_param:openstack_region}
95 host: ${_param:openstack_control_address}
96 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +010097 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +010098 identity:
99 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200100 analytics:
101 members:
102 - host: ${_param:cluster_node01_address}
103 - host: ${_param:cluster_node02_address}
104 - host: ${_param:cluster_node03_address}
105 message_queue:
106 members:
Marek Celoudcba1a442017-06-20 17:14:34 +0200107 - host: ${_param:opencontrail_message_queue_node01_address}
108 - host: ${_param:opencontrail_message_queue_node02_address}
109 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200110 database:
111 members:
112 - host: ${_param:cluster_node01_address}
113 - host: ${_param:cluster_node02_address}
114 - host: ${_param:cluster_node03_address}
115 discovery:
116 host: None
117 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100118 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200119 analytics:
120 host: ${_param:opencontrail_control_address}
121 cache:
122 host: 127.0.0.1
123 identity:
124 host: ${_param:openstack_control_address}
125 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100126 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +0200127 network:
128 host: ${_param:openstack_control_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100129 docker:
130 client:
131 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100132 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100133 status: up
134 pull: true
135 service:
136 controller:
137 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100138 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100139 volumes:
140 - /etc/contrail:/etc/contrail
141 - /var/lib/configdb:/var/lib/cassandra
142 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
143 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
144 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
145 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
146 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
147 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
148 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200149 - /var/log/contrail:/var/log/contrail
150 - /var/log/journal/contrail-controller:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100151 network_mode: "host"
152 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100153 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200154 env_file:
155 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100156 analytics:
157 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100158 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100159 network_mode: "host"
160 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100161 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +0100162 volumes:
163 - /etc/contrail:/etc/contrail
164 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +0200165 - /var/log/contrail:/var/log/contrail
166 - /var/log/journal/contrail-analytics:/var/log/journal
167 env_file:
168 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +0100169 analyticsdb:
170 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100171 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100172 volumes:
173 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
174 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
175 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
176 - /etc/contrail:/etc/contrail
177 - /var/lib/analyticsdb:/var/lib/cassandra
178 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
179 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
180 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
181 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
182 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100183 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100184 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
185 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200186 - /var/log/contrail:/var/log/contrail
187 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100188 network_mode: "host"
189 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100190 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200191 env_file:
192 - contrail.env