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: |
| 9 | opencontrail_version: 4.0 |
| 10 | linux_repo_contrail_component: oc40 |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 11 | opencontrail_message_queue_node01_address: ${_param:openstack_control_node01_address} |
| 12 | opencontrail_message_queue_node02_address: ${_param:openstack_control_node02_address} |
| 13 | opencontrail_message_queue_node03_address: ${_param:openstack_control_node03_address} |
| 14 | opencontrail_message_queue_address: ${_param:openstack_control_address} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 15 | opencontrail_analytics_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-analytics |
| 16 | opencontrail_analyticsdb_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-analyticsdb |
| 17 | opencontrail_controller_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-controller |
| 18 | analytics_vip_address: ${_param:opencontrail_analytics_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 19 | # Temprorary fix for MOS9 packages to pin old version of kafka |
| 20 | linux: |
| 21 | system: |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 22 | kernel: |
| 23 | modules: |
| 24 | - nf_conntrack_ipv4 |
| 25 | opencontrail: |
| 26 | common: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 27 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 28 | identity: |
| 29 | host: ${_param:openstack_control_address} |
| 30 | network: |
| 31 | host: ${_param:openstack_control_address} |
| 32 | collector: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 33 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 34 | discovery: |
| 35 | host: None |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 36 | analytics: |
| 37 | members: |
| 38 | - host: ${_param:cluster_node01_address} |
| 39 | - host: ${_param:cluster_node02_address} |
| 40 | - host: ${_param:cluster_node03_address} |
| 41 | message_queue: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 42 | host: ${_param:opencontrail_message_queue_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 43 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 44 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 45 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 46 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 47 | config: |
| 48 | members: |
| 49 | - host: ${_param:cluster_node01_address} |
| 50 | - host: ${_param:cluster_node02_address} |
| 51 | - host: ${_param:cluster_node03_address} |
| 52 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 53 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 54 | discovery: |
| 55 | host: None |
| 56 | analytics: |
| 57 | members: |
| 58 | - host: ${_param:cluster_node01_address} |
| 59 | - host: ${_param:cluster_node02_address} |
| 60 | - host: ${_param:cluster_node03_address} |
| 61 | config: |
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 | network: |
| 64 | host: ${_param:openstack_control_address} |
| 65 | bind: |
| 66 | address: ${_param:cluster_local_address} |
| 67 | discovery: |
| 68 | host: None |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 69 | api: |
| 70 | host: ${_param:opencontrail_control_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 71 | analytics: |
| 72 | members: |
| 73 | - host: ${_param:cluster_node01_address} |
| 74 | - host: ${_param:cluster_node02_address} |
| 75 | - host: ${_param:cluster_node03_address} |
| 76 | message_queue: |
| 77 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 78 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 79 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 80 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 81 | identity: |
| 82 | region: ${_param:openstack_region} |
| 83 | host: ${_param:openstack_control_address} |
| 84 | control: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 85 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 86 | analytics: |
| 87 | members: |
| 88 | - host: ${_param:cluster_node01_address} |
| 89 | - host: ${_param:cluster_node02_address} |
| 90 | - host: ${_param:cluster_node03_address} |
| 91 | message_queue: |
| 92 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 93 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 94 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 95 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 96 | database: |
| 97 | members: |
| 98 | - host: ${_param:cluster_node01_address} |
| 99 | - host: ${_param:cluster_node02_address} |
| 100 | - host: ${_param:cluster_node03_address} |
| 101 | discovery: |
| 102 | host: None |
| 103 | web: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 104 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 105 | analytics: |
| 106 | host: ${_param:opencontrail_control_address} |
| 107 | cache: |
| 108 | host: 127.0.0.1 |
| 109 | identity: |
| 110 | host: ${_param:openstack_control_address} |
| 111 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 112 | port: 9041 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 113 | network: |
| 114 | host: ${_param:openstack_control_address} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 115 | docker: |
| 116 | client: |
| 117 | compose: |
| 118 | opencontrail_api: |
| 119 | status: up |
| 120 | pull: true |
| 121 | service: |
| 122 | controller: |
| 123 | image: ${_param:opencontrail_controller_image} |
| 124 | volumes: |
| 125 | - /etc/contrail:/etc/contrail |
| 126 | - /var/lib/configdb:/var/lib/cassandra |
| 127 | - /var/lib/config_zookeeper_data:/var/lib/zookeeper |
| 128 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 129 | - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh |
| 130 | - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml |
| 131 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 132 | - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg |
| 133 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
| 134 | network_mode: "host" |
| 135 | privileged: true |
| 136 | analytics: |
| 137 | image: ${_param:opencontrail_analytics_image} |
| 138 | network_mode: "host" |
| 139 | privileged: true |
| 140 | volumes: |
| 141 | - /etc/contrail:/etc/contrail |
| 142 | - /etc/redis/redis.conf:/etc/redis/redis.conf |
| 143 | analyticsdb: |
| 144 | image: ${_param:opencontrail_analyticsdb_image} |
| 145 | volumes: |
| 146 | - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh |
| 147 | - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml |
| 148 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 149 | - /etc/contrail:/etc/contrail |
| 150 | - /var/lib/analyticsdb:/var/lib/cassandra |
| 151 | - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper |
| 152 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 153 | - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties |
| 154 | - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties |
| 155 | - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties |
| 156 | - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg |
| 157 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
| 158 | network_mode: "host" |
| 159 | privileged: true |