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