Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - service.haproxy.proxy.single |
| 3 | - service.keepalived.cluster.single |
| 4 | - service.opencontrail.control.cluster |
Anton Samoylov | b7d4885 | 2018-10-11 23:59:56 +0400 | [diff] [blame] | 5 | - system.haproxy.proxy.listen.opencontrail.control4_0 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 6 | - system.haproxy.proxy.listen.opencontrail.analytics |
| 7 | parameters: |
| 8 | _param: |
Anton Samoylov | 73f12db | 2018-12-12 18:34:24 +0400 | [diff] [blame] | 9 | opencontrail_kafka_config_dir: '/usr/share/kafka/config' |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 10 | opencontrail_kafka_log_cleanup_mtime: '+7' |
Anton Samoylov | 73f12db | 2018-12-12 18:34:24 +0400 | [diff] [blame] | 11 | opencontrail_kafka_log_dir: '/usr/share/kafka/logs' |
Inessa Vasilevskaya | bd0a0dd | 2018-11-19 15:26:56 +0100 | [diff] [blame] | 12 | opencontrail_host_analyticsdb_log_dir: '/var/log/analyticsdb' |
| 13 | opencontrail_host_configdb_log_dir: '/var/log/configdb' |
| 14 | opencontrail_cassandra_log_dir: '/var/log/cassandra' |
| 15 | opencontrail_zookeeper_log_dir: '/var/log/zookeeper' |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 16 | opencontrail_version: 4.0 |
| 17 | linux_repo_contrail_component: oc40 |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 18 | opencontrail_message_queue_node01_address: ${_param:openstack_control_node01_address} |
| 19 | opencontrail_message_queue_node02_address: ${_param:openstack_control_node02_address} |
| 20 | opencontrail_message_queue_node03_address: ${_param:openstack_control_node03_address} |
| 21 | opencontrail_message_queue_address: ${_param:openstack_control_address} |
Anton Samoylov | b708d2a | 2019-03-28 16:38:41 +0400 | [diff] [blame] | 22 | opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_docker_image_tag} |
| 23 | opencontrail_analyticsdb_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_docker_image_tag} |
| 24 | opencontrail_controller_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-controller:${_param:opencontrail_docker_image_tag} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 25 | opencontrail_controller_container_name: opencontrail_controller_1 |
| 26 | opencontrail_analytics_container_name: opencontrail_analytics_1 |
| 27 | opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1 |
Sergey Kreys | 4aa58bc | 2019-02-14 12:38:18 +0000 | [diff] [blame] | 28 | opencontrail_api_workers_count: 6 |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 29 | analytics_vip_address: ${_param:opencontrail_analytics_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 30 | # Temprorary fix for MOS9 packages to pin old version of kafka |
| 31 | linux: |
| 32 | system: |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 33 | kernel: |
| 34 | modules: |
| 35 | - nf_conntrack_ipv4 |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 36 | job: |
| 37 | kafka_logs_cleanup: |
Anton Samoylov | 73f12db | 2018-12-12 18:34:24 +0400 | [diff] [blame] | 38 | command: "find ${_param:opencontrail_kafka_log_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;" |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 39 | identifier: kafka_logs_cleanup |
| 40 | hour: 0 |
| 41 | minute: 0 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 42 | opencontrail: |
| 43 | common: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 44 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 45 | identity: |
| 46 | host: ${_param:openstack_control_address} |
| 47 | network: |
| 48 | host: ${_param:openstack_control_address} |
| 49 | collector: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 50 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 51 | discovery: |
| 52 | host: None |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 53 | analytics: |
| 54 | members: |
| 55 | - host: ${_param:cluster_node01_address} |
| 56 | - host: ${_param:cluster_node02_address} |
| 57 | - host: ${_param:cluster_node03_address} |
| 58 | message_queue: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 59 | host: ${_param:opencontrail_message_queue_address} |
Svimba | a1b2451 | 2018-12-13 10:55:29 +0100 | [diff] [blame] | 60 | password: ${_param:opencontrail_message_queue_password} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 61 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 62 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 63 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 64 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 65 | config: |
| 66 | members: |
| 67 | - host: ${_param:cluster_node01_address} |
| 68 | - host: ${_param:cluster_node02_address} |
| 69 | - host: ${_param:cluster_node03_address} |
| 70 | database: |
Inessa Vasilevskaya | bd0a0dd | 2018-11-19 15:26:56 +0100 | [diff] [blame] | 71 | analyticsdb_log_dir: ${_param:opencontrail_host_analyticsdb_log_dir} |
| 72 | configdb_log_dir: ${_param:opencontrail_host_configdb_log_dir} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 73 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 74 | discovery: |
| 75 | host: None |
| 76 | analytics: |
| 77 | members: |
| 78 | - host: ${_param:cluster_node01_address} |
| 79 | - host: ${_param:cluster_node02_address} |
| 80 | - host: ${_param:cluster_node03_address} |
| 81 | config: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 82 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 83 | network: |
| 84 | host: ${_param:openstack_control_address} |
| 85 | bind: |
| 86 | address: ${_param:cluster_local_address} |
| 87 | discovery: |
| 88 | host: None |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 89 | api: |
| 90 | host: ${_param:opencontrail_control_address} |
Svimba | 483e809 | 2018-09-18 17:39:04 +0200 | [diff] [blame] | 91 | workers_count: ${_param:opencontrail_api_workers_count} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 92 | analytics: |
| 93 | members: |
| 94 | - host: ${_param:cluster_node01_address} |
| 95 | - host: ${_param:cluster_node02_address} |
| 96 | - host: ${_param:cluster_node03_address} |
| 97 | message_queue: |
Svimba | a1b2451 | 2018-12-13 10:55:29 +0100 | [diff] [blame] | 98 | password: ${_param:opencontrail_message_queue_password} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 99 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 100 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 101 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 102 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 103 | identity: |
| 104 | region: ${_param:openstack_region} |
| 105 | host: ${_param:openstack_control_address} |
| 106 | control: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 107 | config_only: true |
Marek Celoud | 6d2f28c | 2017-12-01 15:09:47 +0100 | [diff] [blame] | 108 | identity: |
| 109 | host: ${_param:openstack_control_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 110 | analytics: |
| 111 | members: |
| 112 | - host: ${_param:cluster_node01_address} |
| 113 | - host: ${_param:cluster_node02_address} |
| 114 | - host: ${_param:cluster_node03_address} |
| 115 | message_queue: |
Svimba | a1b2451 | 2018-12-13 10:55:29 +0100 | [diff] [blame] | 116 | password: ${_param:opencontrail_message_queue_password} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 117 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 118 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 119 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 120 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 121 | database: |
| 122 | members: |
| 123 | - host: ${_param:cluster_node01_address} |
| 124 | - host: ${_param:cluster_node02_address} |
| 125 | - host: ${_param:cluster_node03_address} |
| 126 | discovery: |
| 127 | host: None |
| 128 | web: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 129 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 130 | analytics: |
| 131 | host: ${_param:opencontrail_control_address} |
| 132 | cache: |
| 133 | host: 127.0.0.1 |
| 134 | identity: |
| 135 | host: ${_param:openstack_control_address} |
| 136 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 137 | port: 9041 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 138 | network: |
| 139 | host: ${_param:openstack_control_address} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 140 | docker: |
| 141 | client: |
| 142 | compose: |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 143 | opencontrail: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 144 | status: up |
| 145 | pull: true |
| 146 | service: |
| 147 | controller: |
| 148 | image: ${_param:opencontrail_controller_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 149 | container_name: ${_param:opencontrail_controller_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 150 | volumes: |
| 151 | - /etc/contrail:/etc/contrail |
Inessa Vasilevskaya | a5610b2 | 2018-12-27 13:21:28 +0100 | [diff] [blame] | 152 | - /etc/redis/redis_webui.conf:/etc/redis/redis.conf |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 153 | - /var/lib/configdb:/var/lib/cassandra |
| 154 | - /var/lib/config_zookeeper_data:/var/lib/zookeeper |
| 155 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 156 | - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh |
| 157 | - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml |
| 158 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 159 | - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg |
| 160 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 161 | - /var/log/contrail:/var/log/contrail |
| 162 | - /var/log/journal/contrail-controller:/var/log/journal |
Inessa Vasilevskaya | bd0a0dd | 2018-11-19 15:26:56 +0100 | [diff] [blame] | 163 | - ${_param:opencontrail_host_configdb_log_dir}/cassandra:${_param:opencontrail_cassandra_log_dir} |
| 164 | - ${_param:opencontrail_host_configdb_log_dir}/zookeeper:${_param:opencontrail_zookeeper_log_dir} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 165 | network_mode: "host" |
| 166 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 167 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 168 | env_file: |
| 169 | - contrail.env |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 170 | analytics: |
| 171 | image: ${_param:opencontrail_analytics_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 172 | container_name: ${_param:opencontrail_analytics_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 173 | network_mode: "host" |
| 174 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 175 | restart: always |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 176 | volumes: |
| 177 | - /etc/contrail:/etc/contrail |
| 178 | - /etc/redis/redis.conf:/etc/redis/redis.conf |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 179 | - /var/log/contrail:/var/log/contrail |
| 180 | - /var/log/journal/contrail-analytics:/var/log/journal |
| 181 | env_file: |
| 182 | - contrail.env |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 183 | analyticsdb: |
| 184 | image: ${_param:opencontrail_analyticsdb_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 185 | container_name: ${_param:opencontrail_analyticsdb_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 186 | volumes: |
| 187 | - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh |
| 188 | - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml |
| 189 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 190 | - /etc/contrail:/etc/contrail |
| 191 | - /var/lib/analyticsdb:/var/lib/cassandra |
| 192 | - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper |
| 193 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
Anton Samoylov | 73f12db | 2018-12-12 18:34:24 +0400 | [diff] [blame] | 194 | - ${_param:opencontrail_kafka_config_dir}/server.properties:${_param:opencontrail_kafka_config_dir}/server.properties |
| 195 | - ${_param:opencontrail_kafka_config_dir}/consumer.properties:${_param:opencontrail_kafka_config_dir}/consumer.properties |
| 196 | - ${_param:opencontrail_kafka_config_dir}/zookeeper.properties:${_param:opencontrail_kafka_config_dir}/zookeeper.properties |
| 197 | - ${_param:opencontrail_kafka_log_dir}:${_param:opencontrail_kafka_log_dir} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 198 | - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg |
| 199 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 200 | - /var/log/contrail:/var/log/contrail |
| 201 | - /var/log/journal/contrail-analyticsdb:/var/log/journal |
Inessa Vasilevskaya | bd0a0dd | 2018-11-19 15:26:56 +0100 | [diff] [blame] | 202 | - ${_param:opencontrail_host_analyticsdb_log_dir}/cassandra:${_param:opencontrail_cassandra_log_dir} |
| 203 | - ${_param:opencontrail_host_analyticsdb_log_dir}/zookeeper:${_param:opencontrail_zookeeper_log_dir} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 204 | network_mode: "host" |
| 205 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 206 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 207 | env_file: |
| 208 | - contrail.env |