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.opencontrail.control.control |
Anton Samoylov | b7d4885 | 2018-10-11 23:59:56 +0400 | [diff] [blame] | 4 | - system.haproxy.proxy.listen.opencontrail.control4_0 |
Denis Egorenko | fae1061 | 2018-11-29 15:43:35 +0400 | [diff] [blame] | 5 | - system.keepalived.cluster.instance.opencontrail_vip |
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} |
Svimba | a1b2451 | 2018-12-13 10:55:29 +0100 | [diff] [blame] | 14 | opencontrail_message_queue_password: guest |
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: |
Svimba | a1b2451 | 2018-12-13 10:55:29 +0100 | [diff] [blame] | 43 | password: ${_param:opencontrail_message_queue_password} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 44 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 45 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 46 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 47 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 48 | identity: |
| 49 | region: ${_param:openstack_region} |
| 50 | host: ${_param:openstack_control_address} |
| 51 | control: |
Anton Samoylov | 9298f7d | 2018-10-23 23:30:41 +0400 | [diff] [blame] | 52 | role: ${_param:opencontrail_node_role} |
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 | analytics: |
| 55 | members: |
| 56 | - host: ${_param:opencontrail_analytics_node01_address} |
| 57 | - host: ${_param:opencontrail_analytics_node02_address} |
| 58 | - host: ${_param:opencontrail_analytics_node03_address} |
| 59 | message_queue: |
Svimba | a1b2451 | 2018-12-13 10:55:29 +0100 | [diff] [blame] | 60 | password: ${_param:opencontrail_message_queue_password} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 61 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 62 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 63 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 64 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 65 | database: |
| 66 | members: |
| 67 | - host: ${_param:opencontrail_control_node01_address} |
| 68 | - host: ${_param:opencontrail_control_node02_address} |
| 69 | - host: ${_param:opencontrail_control_node03_address} |
| 70 | discovery: |
| 71 | host: None |
| 72 | web: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 73 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 74 | analytics: |
| 75 | host: ${_param:opencontrail_analytics_address} |
| 76 | cache: |
| 77 | host: 127.0.0.1 |
| 78 | identity: |
| 79 | host: ${_param:openstack_control_address} |
| 80 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 81 | port: 9041 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 82 | network: |
| 83 | host: ${_param:openstack_control_address} |
| 84 | database: |
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:opencontrail_analytics_node01_address} |
| 89 | - host: ${_param:opencontrail_analytics_node02_address} |
| 90 | - host: ${_param:opencontrail_analytics_node03_address} |
| 91 | linux: |
| 92 | system: |
| 93 | kernel: |
| 94 | modules: |
| 95 | - nf_conntrack_ipv4 |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 96 | docker: |
| 97 | client: |
| 98 | compose: |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 99 | opencontrail: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 100 | status: up |
| 101 | pull: true |
| 102 | service: |
| 103 | controller: |
| 104 | image: ${_param:opencontrail_controller_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 105 | container_name: ${_param:opencontrail_controller_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 106 | volumes: |
| 107 | - /etc/contrail:/etc/contrail |
| 108 | - /var/lib/configdb:/var/lib/cassandra |
| 109 | - /var/lib/config_zookeeper_data:/var/lib/zookeeper |
| 110 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 111 | - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh |
| 112 | - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml |
| 113 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 114 | - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg |
| 115 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 116 | - /var/log/contrail:/var/log/contrail |
| 117 | - /var/log/journal/contrail-controller:/var/log/journal |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 118 | network_mode: "host" |
| 119 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 120 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 121 | env_file: |
| 122 | - contrail.env |