blob: 17aef3a0bd29462c190e95bcaca3b93c495bcdce [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
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010020 opencontrail_controller_container_name: opencontrail_controller_1
21 opencontrail_analytics_container_name: opencontrail_analytics_1
22 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Marek Celoudfa1fa512017-11-03 16:07:04 +010023 analytics_vip_address: ${_param:opencontrail_analytics_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020024# Temprorary fix for MOS9 packages to pin old version of kafka
25 linux:
26 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020027 kernel:
28 modules:
29 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010030 job:
31 kafka_logs_cleanup:
32 command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
33 identifier: kafka_logs_cleanup
34 hour: 0
35 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020036 opencontrail:
37 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010038 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020039 identity:
40 host: ${_param:openstack_control_address}
41 network:
42 host: ${_param:openstack_control_address}
43 collector:
Marek Celoudfa1fa512017-11-03 16:07:04 +010044 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020045 discovery:
46 host: None
Marek Celouda2f29f02017-06-16 14:47:31 +020047 analytics:
48 members:
49 - host: ${_param:cluster_node01_address}
50 - host: ${_param:cluster_node02_address}
51 - host: ${_param:cluster_node03_address}
52 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020053 host: ${_param:opencontrail_message_queue_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020054 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020055 - host: ${_param:opencontrail_message_queue_node01_address}
56 - host: ${_param:opencontrail_message_queue_node02_address}
57 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020058 config:
59 members:
60 - host: ${_param:cluster_node01_address}
61 - host: ${_param:cluster_node02_address}
62 - host: ${_param:cluster_node03_address}
63 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010064 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020065 discovery:
66 host: None
67 analytics:
68 members:
69 - host: ${_param:cluster_node01_address}
70 - host: ${_param:cluster_node02_address}
71 - host: ${_param:cluster_node03_address}
72 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010073 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020074 network:
75 host: ${_param:openstack_control_address}
76 bind:
77 address: ${_param:cluster_local_address}
78 discovery:
79 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020080 api:
81 host: ${_param:opencontrail_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020082 analytics:
83 members:
84 - host: ${_param:cluster_node01_address}
85 - host: ${_param:cluster_node02_address}
86 - host: ${_param:cluster_node03_address}
87 message_queue:
88 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020089 - host: ${_param:opencontrail_message_queue_node01_address}
90 - host: ${_param:opencontrail_message_queue_node02_address}
91 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020092 identity:
93 region: ${_param:openstack_region}
94 host: ${_param:openstack_control_address}
95 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +010096 config_only: true
Marek Celoud6d2f28c2017-12-01 15:09:47 +010097 identity:
98 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020099 analytics:
100 members:
101 - host: ${_param:cluster_node01_address}
102 - host: ${_param:cluster_node02_address}
103 - host: ${_param:cluster_node03_address}
104 message_queue:
105 members:
Marek Celoudcba1a442017-06-20 17:14:34 +0200106 - host: ${_param:opencontrail_message_queue_node01_address}
107 - host: ${_param:opencontrail_message_queue_node02_address}
108 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +0200109 database:
110 members:
111 - host: ${_param:cluster_node01_address}
112 - host: ${_param:cluster_node02_address}
113 - host: ${_param:cluster_node03_address}
114 discovery:
115 host: None
116 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100117 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +0200118 analytics:
119 host: ${_param:opencontrail_control_address}
120 cache:
121 host: 127.0.0.1
122 identity:
123 host: ${_param:openstack_control_address}
124 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100125 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +0200126 network:
127 host: ${_param:openstack_control_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100128 docker:
129 client:
130 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100131 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100132 status: up
133 pull: true
134 service:
135 controller:
136 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100137 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100138 volumes:
139 - /etc/contrail:/etc/contrail
140 - /var/lib/configdb:/var/lib/cassandra
141 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
142 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
143 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
144 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
145 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
146 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
147 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
148 network_mode: "host"
149 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100150 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +0100151 analytics:
152 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100153 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100154 network_mode: "host"
155 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100156 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +0100157 volumes:
158 - /etc/contrail:/etc/contrail
159 - /etc/redis/redis.conf:/etc/redis/redis.conf
160 analyticsdb:
161 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100162 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100163 volumes:
164 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
165 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
166 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
167 - /etc/contrail:/etc/contrail
168 - /var/lib/analyticsdb:/var/lib/cassandra
169 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
170 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
171 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
172 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
173 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100174 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100175 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
176 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
177 network_mode: "host"
178 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100179 restart: always