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