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.analytics |
| 5 | - system.haproxy.proxy.listen.opencontrail.analytics |
| 6 | parameters: |
| 7 | _param: |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 8 | opencontrail_kafka_log_cleanup_mtime: '+7' |
| 9 | opencontrail_kafka_log_cleanup_dir: '/usr/share/kafka/logs/' |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 10 | opencontrail_version: 4.0 |
| 11 | linux_repo_contrail_component: oc40 |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 12 | opencontrail_message_queue_node01_address: ${_param:openstack_message_queue_node01_address} |
| 13 | opencontrail_message_queue_node02_address: ${_param:openstack_message_queue_node02_address} |
| 14 | opencontrail_message_queue_node03_address: ${_param:openstack_message_queue_node03_address} |
| 15 | opencontrail_message_queue_address: ${_param:openstack_message_queue_address} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 16 | opencontrail_analytics_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-analytics |
| 17 | opencontrail_analyticsdb_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-analyticsdb |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame^] | 18 | opencontrail_analytics_container_name: opencontrail_analytics_1 |
| 19 | opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 20 | # Temprorary fix for MOS9 packages to pin old version of kafka |
| 21 | linux: |
| 22 | system: |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 23 | kernel: |
| 24 | modules: |
| 25 | - nf_conntrack_ipv4 |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 26 | job: |
| 27 | kafka_logs_cleanup: |
| 28 | command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;" |
| 29 | identifier: kafka_logs_cleanup |
| 30 | hour: 0 |
| 31 | minute: 0 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 32 | opencontrail: |
| 33 | common: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 34 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 35 | identity: |
| 36 | host: ${_param:openstack_control_address} |
| 37 | network: |
| 38 | host: ${_param:openstack_control_address} |
| 39 | collector: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 40 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 41 | discovery: |
| 42 | host: None |
Marek Celoud | 6d2f28c | 2017-12-01 15:09:47 +0100 | [diff] [blame] | 43 | identity: |
| 44 | host: ${_param:openstack_control_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 45 | analytics: |
| 46 | members: |
| 47 | - host: ${_param:opencontrail_analytics_node01_address} |
| 48 | - host: ${_param:opencontrail_analytics_node02_address} |
| 49 | - host: ${_param:opencontrail_analytics_node03_address} |
| 50 | message_queue: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 51 | host: ${_param:opencontrail_message_queue_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 52 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 53 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 54 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 55 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 56 | config: |
| 57 | members: |
| 58 | - host: ${_param:opencontrail_control_node01_address} |
| 59 | - host: ${_param:opencontrail_control_node02_address} |
| 60 | - host: ${_param:opencontrail_control_node03_address} |
| 61 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 62 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 63 | discovery: |
| 64 | host: None |
| 65 | analytics: |
| 66 | members: |
| 67 | - host: ${_param:opencontrail_analytics_node01_address} |
| 68 | - host: ${_param:opencontrail_analytics_node02_address} |
| 69 | - host: ${_param:opencontrail_analytics_node03_address} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 70 | docker: |
| 71 | client: |
| 72 | compose: |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame^] | 73 | opencontrail: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 74 | status: up |
| 75 | pull: true |
| 76 | service: |
| 77 | analytics: |
| 78 | image: ${_param:opencontrail_analytics_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame^] | 79 | container_name: ${_param:opencontrail_analytics_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 80 | network_mode: "host" |
| 81 | privileged: true |
| 82 | volumes: |
| 83 | - /etc/contrail:/etc/contrail |
| 84 | - /etc/redis/redis.conf:/etc/redis/redis.conf |
| 85 | analyticsdb: |
| 86 | image: ${_param:opencontrail_analyticsdb_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame^] | 87 | container_name: ${_param:opencontrail_analyticsdb_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 88 | volumes: |
| 89 | - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh |
| 90 | - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml |
| 91 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 92 | - /etc/contrail:/etc/contrail |
| 93 | - /var/lib/analyticsdb:/var/lib/cassandra |
| 94 | - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper |
| 95 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 96 | - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties |
| 97 | - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties |
| 98 | - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 99 | - /usr/share/kafka/logs:/usr/share/kafka/logs |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 100 | - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg |
| 101 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
| 102 | network_mode: "host" |
| 103 | privileged: true |