blob: 92a6a17c22ffde1b9ad7f8fe217a8a6be42f73ce [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
Marek Celoudcba1a442017-06-20 17:14:34 +020013 opencontrail_message_queue_node01_address: ${_param:openstack_control_node01_address}
14 opencontrail_message_queue_node02_address: ${_param:openstack_control_node02_address}
15 opencontrail_message_queue_node03_address: ${_param:openstack_control_node03_address}
16 opencontrail_message_queue_address: ${_param:openstack_control_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +010017 opencontrail_analytics_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-analytics
18 opencontrail_analyticsdb_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-analyticsdb
19 opencontrail_controller_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-controller
20 analytics_vip_address: ${_param:opencontrail_analytics_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020021# Temprorary fix for MOS9 packages to pin old version of kafka
22 linux:
23 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020024 kernel:
25 modules:
26 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010027 job:
28 kafka_logs_cleanup:
29 command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
30 identifier: kafka_logs_cleanup
31 hour: 0
32 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020033 opencontrail:
34 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010035 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020036 identity:
37 host: ${_param:openstack_control_address}
38 network:
39 host: ${_param:openstack_control_address}
40 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +010041 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020042 discovery:
43 host: None
Marek Celouda2f29f02017-06-16 14:47:31 +020044 analytics:
45 members:
46 - host: ${_param:cluster_node01_address}
47 - host: ${_param:cluster_node02_address}
48 - host: ${_param:cluster_node03_address}
49 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020050 host: ${_param:opencontrail_message_queue_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020051 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020052 - host: ${_param:opencontrail_message_queue_node01_address}
53 - host: ${_param:opencontrail_message_queue_node02_address}
54 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020055 config:
56 members:
57 - host: ${_param:cluster_node01_address}
58 - host: ${_param:cluster_node02_address}
59 - host: ${_param:cluster_node03_address}
60 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010061 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020062 discovery:
63 host: None
64 analytics:
65 members:
66 - host: ${_param:cluster_node01_address}
67 - host: ${_param:cluster_node02_address}
68 - host: ${_param:cluster_node03_address}
69 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010070 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020071 network:
72 host: ${_param:openstack_control_address}
73 bind:
74 address: ${_param:cluster_local_address}
75 discovery:
76 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020077 api:
78 host: ${_param:opencontrail_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020079 analytics:
80 members:
81 - host: ${_param:cluster_node01_address}
82 - host: ${_param:cluster_node02_address}
83 - host: ${_param:cluster_node03_address}
84 message_queue:
85 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020086 - host: ${_param:opencontrail_message_queue_node01_address}
87 - host: ${_param:opencontrail_message_queue_node02_address}
88 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020089 identity:
90 region: ${_param:openstack_region}
91 host: ${_param:openstack_control_address}
92 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +010093 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +010094 identity:
95 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020096 analytics:
97 members:
98 - host: ${_param:cluster_node01_address}
99 - host: ${_param:cluster_node02_address}
100 - host: ${_param:cluster_node03_address}
101 message_queue:
102 members:
Marek Celoudcba1a442017-06-20 17:14:34 +0200103 - host: ${_param:opencontrail_message_queue_node01_address}
104 - host: ${_param:opencontrail_message_queue_node02_address}
105 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200106 database:
107 members:
108 - host: ${_param:cluster_node01_address}
109 - host: ${_param:cluster_node02_address}
110 - host: ${_param:cluster_node03_address}
111 discovery:
112 host: None
113 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100114 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200115 analytics:
116 host: ${_param:opencontrail_control_address}
117 cache:
118 host: 127.0.0.1
119 identity:
120 host: ${_param:openstack_control_address}
121 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100122 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +0200123 network:
124 host: ${_param:openstack_control_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100125 docker:
126 client:
127 compose:
128 opencontrail_api:
129 status: up
130 pull: true
131 service:
132 controller:
133 image: ${_param:opencontrail_controller_image}
134 volumes:
135 - /etc/contrail:/etc/contrail
136 - /var/lib/configdb:/var/lib/cassandra
137 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
138 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
139 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
140 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
141 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
142 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
143 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
144 network_mode: "host"
145 privileged: true
146 analytics:
147 image: ${_param:opencontrail_analytics_image}
148 network_mode: "host"
149 privileged: true
150 volumes:
151 - /etc/contrail:/etc/contrail
152 - /etc/redis/redis.conf:/etc/redis/redis.conf
153 analyticsdb:
154 image: ${_param:opencontrail_analyticsdb_image}
155 volumes:
156 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
157 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
158 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
159 - /etc/contrail:/etc/contrail
160 - /var/lib/analyticsdb:/var/lib/cassandra
161 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
162 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
163 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
164 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
165 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100166 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100167 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
168 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
169 network_mode: "host"
170 privileged: true