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