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 |
| 5 | - system.haproxy.proxy.listen.opencontrail.control |
| 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_control_node01_address} |
| 14 | opencontrail_message_queue_node02_address: ${_param:openstack_control_node02_address} |
| 15 | opencontrail_message_queue_node03_address: ${_param:openstack_control_node03_address} |
| 16 | opencontrail_message_queue_address: ${_param:openstack_control_address} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 17 | opencontrail_analytics_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-analytics |
| 18 | opencontrail_analyticsdb_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-analyticsdb |
| 19 | opencontrail_controller_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-controller |
| 20 | analytics_vip_address: ${_param:opencontrail_analytics_address} |
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 | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 44 | analytics: |
| 45 | members: |
| 46 | - host: ${_param:cluster_node01_address} |
| 47 | - host: ${_param:cluster_node02_address} |
| 48 | - host: ${_param:cluster_node03_address} |
| 49 | message_queue: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 50 | host: ${_param:opencontrail_message_queue_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 51 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 52 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 53 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 54 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 55 | config: |
| 56 | members: |
| 57 | - host: ${_param:cluster_node01_address} |
| 58 | - host: ${_param:cluster_node02_address} |
| 59 | - host: ${_param:cluster_node03_address} |
| 60 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 61 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 62 | discovery: |
| 63 | host: None |
| 64 | analytics: |
| 65 | members: |
| 66 | - host: ${_param:cluster_node01_address} |
| 67 | - host: ${_param:cluster_node02_address} |
| 68 | - host: ${_param:cluster_node03_address} |
| 69 | config: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 70 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 71 | network: |
| 72 | host: ${_param:openstack_control_address} |
| 73 | bind: |
| 74 | address: ${_param:cluster_local_address} |
| 75 | discovery: |
| 76 | host: None |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 77 | api: |
| 78 | host: ${_param:opencontrail_control_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 79 | analytics: |
| 80 | members: |
| 81 | - host: ${_param:cluster_node01_address} |
| 82 | - host: ${_param:cluster_node02_address} |
| 83 | - host: ${_param:cluster_node03_address} |
| 84 | message_queue: |
| 85 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 86 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 87 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 88 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 89 | identity: |
| 90 | region: ${_param:openstack_region} |
| 91 | host: ${_param:openstack_control_address} |
| 92 | control: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 93 | config_only: true |
Marek Celoud | 6d2f28c | 2017-12-01 15:09:47 +0100 | [diff] [blame] | 94 | identity: |
| 95 | host: ${_param:openstack_control_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 96 | analytics: |
| 97 | members: |
| 98 | - host: ${_param:cluster_node01_address} |
| 99 | - host: ${_param:cluster_node02_address} |
| 100 | - host: ${_param:cluster_node03_address} |
| 101 | message_queue: |
| 102 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 103 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 104 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 105 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 106 | database: |
| 107 | members: |
| 108 | - host: ${_param:cluster_node01_address} |
| 109 | - host: ${_param:cluster_node02_address} |
| 110 | - host: ${_param:cluster_node03_address} |
| 111 | discovery: |
| 112 | host: None |
| 113 | web: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 114 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 115 | analytics: |
| 116 | host: ${_param:opencontrail_control_address} |
| 117 | cache: |
| 118 | host: 127.0.0.1 |
| 119 | identity: |
| 120 | host: ${_param:openstack_control_address} |
| 121 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 122 | port: 9041 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 123 | network: |
| 124 | host: ${_param:openstack_control_address} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 125 | docker: |
| 126 | client: |
| 127 | compose: |
| 128 | opencontrail_api: |
| 129 | status: up |
| 130 | pull: true |
| 131 | service: |
| 132 | controller: |
| 133 | image: ${_param:opencontrail_controller_image} |
| 134 | volumes: |
| 135 | - /etc/contrail:/etc/contrail |
| 136 | - /var/lib/configdb:/var/lib/cassandra |
| 137 | - /var/lib/config_zookeeper_data:/var/lib/zookeeper |
| 138 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 139 | - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh |
| 140 | - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml |
| 141 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 142 | - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg |
| 143 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
| 144 | network_mode: "host" |
| 145 | privileged: true |
| 146 | analytics: |
| 147 | image: ${_param:opencontrail_analytics_image} |
| 148 | network_mode: "host" |
| 149 | privileged: true |
| 150 | volumes: |
| 151 | - /etc/contrail:/etc/contrail |
| 152 | - /etc/redis/redis.conf:/etc/redis/redis.conf |
| 153 | analyticsdb: |
| 154 | image: ${_param:opencontrail_analyticsdb_image} |
| 155 | volumes: |
| 156 | - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh |
| 157 | - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml |
| 158 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 159 | - /etc/contrail:/etc/contrail |
| 160 | - /var/lib/analyticsdb:/var/lib/cassandra |
| 161 | - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper |
| 162 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 163 | - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties |
| 164 | - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties |
| 165 | - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 166 | - /usr/share/kafka/logs:/usr/share/kafka/logs |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 167 | - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg |
| 168 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
| 169 | network_mode: "host" |
| 170 | privileged: true |