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