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.keepalived.cluster.single |
| 4 | - service.opencontrail.control.control |
| 5 | - system.haproxy.proxy.listen.opencontrail.control |
| 6 | parameters: |
| 7 | _param: |
azvyagintsev | 16ca7ce | 2018-08-21 17:20:33 +0300 | [diff] [blame] | 8 | mcp_docker_registry: 'docker-prod-local.artifactory.mirantis.com' |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 9 | opencontrail_version: 4.0 |
| 10 | linux_repo_contrail_component: oc40 |
Petr Jediný | eb7fceb | 2018-06-21 19:17:27 +0200 | [diff] [blame] | 11 | opencontrail_image_tag: latest |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 12 | opencontrail_message_queue_node01_address: ${_param:openstack_message_queue_node01_address} |
| 13 | opencontrail_message_queue_node02_address: ${_param:openstack_message_queue_node02_address} |
| 14 | opencontrail_message_queue_node03_address: ${_param:openstack_message_queue_node03_address} |
azvyagintsev | 16ca7ce | 2018-08-21 17:20:33 +0300 | [diff] [blame] | 15 | opencontrail_controller_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-controller:${_param:opencontrail_image_tag} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 16 | opencontrail_controller_container_name: opencontrail_controller_1 |
Svimba | 483e809 | 2018-09-18 17:39:04 +0200 | [diff] [blame] | 17 | opencontrail_api_workers_count: 6 |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 18 | analytics_vip_address: ${_param:opencontrail_analytics_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 19 | opencontrail: |
| 20 | common: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 21 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 22 | identity: |
| 23 | host: ${_param:openstack_control_address} |
| 24 | network: |
| 25 | host: ${_param:openstack_control_address} |
| 26 | config: |
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 | network: |
| 29 | host: ${_param:openstack_control_address} |
| 30 | bind: |
| 31 | address: ${_param:cluster_local_address} |
| 32 | discovery: |
| 33 | host: None |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 34 | api: |
| 35 | host: ${_param:opencontrail_control_address} |
Svimba | 483e809 | 2018-09-18 17:39:04 +0200 | [diff] [blame] | 36 | workers_count: ${_param:opencontrail_api_workers_count} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 37 | analytics: |
| 38 | members: |
| 39 | - host: ${_param:opencontrail_analytics_node01_address} |
| 40 | - host: ${_param:opencontrail_analytics_node02_address} |
| 41 | - host: ${_param:opencontrail_analytics_node03_address} |
| 42 | message_queue: |
| 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 | identity: |
| 48 | region: ${_param:openstack_region} |
| 49 | host: ${_param:openstack_control_address} |
| 50 | control: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 51 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 52 | analytics: |
| 53 | members: |
| 54 | - host: ${_param:opencontrail_analytics_node01_address} |
| 55 | - host: ${_param:opencontrail_analytics_node02_address} |
| 56 | - host: ${_param:opencontrail_analytics_node03_address} |
| 57 | message_queue: |
| 58 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 59 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 60 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 61 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 62 | database: |
| 63 | members: |
| 64 | - host: ${_param:opencontrail_control_node01_address} |
| 65 | - host: ${_param:opencontrail_control_node02_address} |
| 66 | - host: ${_param:opencontrail_control_node03_address} |
| 67 | discovery: |
| 68 | host: None |
| 69 | web: |
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 | analytics: |
| 72 | host: ${_param:opencontrail_analytics_address} |
| 73 | cache: |
| 74 | host: 127.0.0.1 |
| 75 | identity: |
| 76 | host: ${_param:openstack_control_address} |
| 77 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 78 | port: 9041 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 79 | network: |
| 80 | host: ${_param:openstack_control_address} |
| 81 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 82 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 83 | analytics: |
| 84 | members: |
| 85 | - host: ${_param:opencontrail_analytics_node01_address} |
| 86 | - host: ${_param:opencontrail_analytics_node02_address} |
| 87 | - host: ${_param:opencontrail_analytics_node03_address} |
| 88 | linux: |
| 89 | system: |
| 90 | kernel: |
| 91 | modules: |
| 92 | - nf_conntrack_ipv4 |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 93 | docker: |
| 94 | client: |
| 95 | compose: |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 96 | opencontrail: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 97 | status: up |
| 98 | pull: true |
| 99 | service: |
| 100 | controller: |
| 101 | image: ${_param:opencontrail_controller_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 102 | container_name: ${_param:opencontrail_controller_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 103 | volumes: |
| 104 | - /etc/contrail:/etc/contrail |
| 105 | - /var/lib/configdb:/var/lib/cassandra |
| 106 | - /var/lib/config_zookeeper_data:/var/lib/zookeeper |
| 107 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 108 | - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh |
| 109 | - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml |
| 110 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 111 | - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg |
| 112 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 113 | - /var/log/contrail:/var/log/contrail |
| 114 | - /var/log/journal/contrail-controller:/var/log/journal |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 115 | network_mode: "host" |
| 116 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 117 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 118 | env_file: |
| 119 | - contrail.env |