Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - service.opencontrail.control.single |
| 3 | - service.haproxy.proxy.single |
| 4 | parameters: |
| 5 | _param: |
| 6 | opencontrail_version: 4.0 |
| 7 | linux_repo_contrail_component: oc40 |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 8 | opencontrail_analytics_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-analytics |
| 9 | opencontrail_analyticsdb_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-analyticsdb |
| 10 | opencontrail_controller_image: docker-prod-local.artifactory.mirantis.com/opencontrail/opencontrail-controller |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 11 | # Temprorary fix for MOS9 packages to pin old version of kafka |
| 12 | linux: |
| 13 | system: |
| 14 | package: |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 15 | contrail-api-cli: |
| 16 | version: latest |
| 17 | kernel: |
| 18 | modules: |
| 19 | - nf_conntrack_ipv4 |
| 20 | haproxy: |
| 21 | proxy: |
| 22 | listen: |
| 23 | contrail_api: |
| 24 | type: contrail-api |
| 25 | service_name: contrail |
| 26 | check: false |
| 27 | binds: |
| 28 | - address: ${_param:single_address} |
| 29 | port: 8082 |
| 30 | servers: |
| 31 | - name: ctl01 |
| 32 | host: ${_param:single_address} |
| 33 | port: 9100 |
| 34 | params: check inter 2000 rise 2 fall 3 |
| 35 | contrail_discovery: |
| 36 | type: contrail-api |
| 37 | service_name: contrail |
| 38 | binds: |
| 39 | - address: ${_param:single_address} |
| 40 | port: 5998 |
| 41 | servers: |
| 42 | - name: ctl01 |
| 43 | host: ${_param:single_address} |
| 44 | port: 9110 |
| 45 | params: check inter 2000 rise 2 fall 3 |
| 46 | contrail_config_stats: |
| 47 | type: contrail-config |
| 48 | service_name: contrail |
| 49 | format: listen |
| 50 | binds: |
| 51 | - address: '*' |
| 52 | port: 5937 |
| 53 | user: haproxy |
| 54 | password: ${_param:opencontrail_stats_password} |
| 55 | contrail_openstack_stats: |
| 56 | type: contrail-config |
| 57 | service_name: contrail |
| 58 | format: listen |
| 59 | binds: |
| 60 | - address: '*' |
| 61 | port: 5936 |
| 62 | user: haproxy |
| 63 | password: ${_param:opencontrail_stats_password} |
| 64 | contrail_collector_stats: |
| 65 | type: contrail-config |
| 66 | service_name: contrail |
| 67 | format: listen |
| 68 | binds: |
| 69 | - address: '*' |
| 70 | port: 5938 |
| 71 | user: haproxy |
| 72 | password: ${_param:opencontrail_stats_password} |
| 73 | opencontrail: |
| 74 | common: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 75 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 76 | identity: |
| 77 | host: ${_param:openstack_control_address} |
| 78 | network: |
| 79 | host: ${_param:openstack_control_address} |
| 80 | config: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 81 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 82 | network: |
| 83 | host: ${_param:openstack_control_address} |
| 84 | bind: |
| 85 | address: ${_param:single_address} |
| 86 | discovery: |
| 87 | host: None |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 88 | api: |
| 89 | host: ${_param:single_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 90 | analytics: |
| 91 | members: |
| 92 | - host: ${_param:single_address} |
| 93 | message_queue: |
| 94 | members: |
| 95 | - host: ${_param:openstack_control_address} |
| 96 | identity: |
| 97 | region: ${_param:openstack_region} |
| 98 | host: ${_param:openstack_control_address} |
| 99 | control: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 100 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 101 | analytics: |
| 102 | members: |
| 103 | - host: ${_param:single_address} |
| 104 | message_queue: |
| 105 | members: |
| 106 | - host: ${_param:openstack_control_address} |
| 107 | database: |
| 108 | members: |
| 109 | - host: ${_param:single_address} |
| 110 | discovery: |
| 111 | host: None |
| 112 | web: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 113 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 114 | analytics: |
| 115 | host: ${_param:single_address} |
| 116 | cache: |
| 117 | host: 127.0.0.1 |
| 118 | identity: |
| 119 | host: ${_param:openstack_control_address} |
| 120 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 121 | port: 9041 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 122 | network: |
| 123 | host: ${_param:openstack_control_address} |
| 124 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 125 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 126 | analytics: |
| 127 | members: |
| 128 | - host: ${_param:single_address} |
| 129 | collector: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 130 | config_only: true |
Marek Celoud | 6d2f28c | 2017-12-01 15:09:47 +0100 | [diff] [blame] | 131 | identity: |
| 132 | host: ${_param:openstack_control_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 133 | discovery: |
| 134 | host: None |
| 135 | database: |
| 136 | members: |
| 137 | - host: ${_param:single_address} |
| 138 | analytics: |
| 139 | members: |
| 140 | - host: ${_param:single_address} |
| 141 | message_queue: |
| 142 | host: ${_param:openstack_control_address} |
| 143 | members: |
| 144 | - host: ${_param:openstack_control_address} |
| 145 | config: |
| 146 | members: |
| 147 | - host: ${_param:single_address} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 148 | docker: |
| 149 | client: |
| 150 | compose: |
| 151 | opencontrail_api: |
| 152 | status: up |
| 153 | pull: true |
| 154 | service: |
| 155 | controller: |
| 156 | image: ${_param:opencontrail_controller_image} |
| 157 | volumes: |
| 158 | - /etc/contrail:/etc/contrail |
| 159 | - /var/lib/configdb:/var/lib/cassandra |
| 160 | - /var/lib/config_zookeeper_data:/var/lib/zookeeper |
| 161 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 162 | - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh |
| 163 | - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml |
| 164 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 165 | - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg |
| 166 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
| 167 | network_mode: "host" |
| 168 | privileged: true |
| 169 | analytics: |
| 170 | image: ${_param:opencontrail_analytics_image} |
| 171 | network_mode: "host" |
| 172 | privileged: true |
| 173 | volumes: |
| 174 | - /etc/contrail:/etc/contrail |
| 175 | - /etc/redis/redis.conf:/etc/redis/redis.conf |
| 176 | analyticsdb: |
| 177 | image: ${_param:opencontrail_analyticsdb_image} |
| 178 | volumes: |
| 179 | - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh |
| 180 | - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml |
| 181 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 182 | - /etc/contrail:/etc/contrail |
| 183 | - /var/lib/analyticsdb:/var/lib/cassandra |
| 184 | - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper |
| 185 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 186 | - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties |
| 187 | - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties |
| 188 | - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties |
| 189 | - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg |
| 190 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
| 191 | network_mode: "host" |
| 192 | privileged: true |