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