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