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 |
Inessa Vasilevskaya | bd0a0dd | 2018-11-19 15:26:56 +0100 | [diff] [blame] | 11 | opencontrail_host_configdb_log_dir: '/var/log/configdb' |
| 12 | opencontrail_cassandra_log_dir: '/var/log/cassandra' |
| 13 | opencontrail_zookeeper_log_dir: '/var/log/zookeeper' |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 14 | opencontrail_message_queue_node01_address: ${_param:openstack_message_queue_node01_address} |
| 15 | opencontrail_message_queue_node02_address: ${_param:openstack_message_queue_node02_address} |
| 16 | opencontrail_message_queue_node03_address: ${_param:openstack_message_queue_node03_address} |
Svimba | a1b2451 | 2018-12-13 10:55:29 +0100 | [diff] [blame] | 17 | opencontrail_message_queue_password: guest |
azvyagintsev | 16ca7ce | 2018-08-21 17:20:33 +0300 | [diff] [blame] | 18 | 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] | 19 | opencontrail_controller_container_name: opencontrail_controller_1 |
Anton Samoylov | 31d4bec | 2019-01-30 12:14:48 +0400 | [diff] [blame^] | 20 | opencontrail_api_workers_count: 1 |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 21 | analytics_vip_address: ${_param:opencontrail_analytics_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 22 | opencontrail: |
| 23 | common: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 24 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 25 | identity: |
| 26 | host: ${_param:openstack_control_address} |
| 27 | network: |
| 28 | host: ${_param:openstack_control_address} |
| 29 | config: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 30 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 31 | network: |
| 32 | host: ${_param:openstack_control_address} |
| 33 | bind: |
| 34 | address: ${_param:cluster_local_address} |
| 35 | discovery: |
| 36 | host: None |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 37 | api: |
| 38 | host: ${_param:opencontrail_control_address} |
Svimba | 483e809 | 2018-09-18 17:39:04 +0200 | [diff] [blame] | 39 | workers_count: ${_param:opencontrail_api_workers_count} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 40 | analytics: |
| 41 | members: |
| 42 | - host: ${_param:opencontrail_analytics_node01_address} |
| 43 | - host: ${_param:opencontrail_analytics_node02_address} |
| 44 | - host: ${_param:opencontrail_analytics_node03_address} |
| 45 | message_queue: |
Svimba | a1b2451 | 2018-12-13 10:55:29 +0100 | [diff] [blame] | 46 | password: ${_param:opencontrail_message_queue_password} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 47 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 48 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 49 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 50 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 51 | identity: |
| 52 | region: ${_param:openstack_region} |
| 53 | host: ${_param:openstack_control_address} |
| 54 | control: |
Anton Samoylov | 9298f7d | 2018-10-23 23:30:41 +0400 | [diff] [blame] | 55 | role: ${_param:opencontrail_node_role} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 56 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 57 | analytics: |
| 58 | members: |
| 59 | - host: ${_param:opencontrail_analytics_node01_address} |
| 60 | - host: ${_param:opencontrail_analytics_node02_address} |
| 61 | - host: ${_param:opencontrail_analytics_node03_address} |
| 62 | message_queue: |
Svimba | a1b2451 | 2018-12-13 10:55:29 +0100 | [diff] [blame] | 63 | password: ${_param:opencontrail_message_queue_password} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 64 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 65 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 66 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 67 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 68 | database: |
| 69 | members: |
| 70 | - host: ${_param:opencontrail_control_node01_address} |
| 71 | - host: ${_param:opencontrail_control_node02_address} |
| 72 | - host: ${_param:opencontrail_control_node03_address} |
| 73 | discovery: |
| 74 | host: None |
| 75 | web: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 76 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 77 | analytics: |
| 78 | host: ${_param:opencontrail_analytics_address} |
| 79 | cache: |
| 80 | host: 127.0.0.1 |
| 81 | identity: |
| 82 | host: ${_param:openstack_control_address} |
| 83 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 84 | port: 9041 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 85 | network: |
| 86 | host: ${_param:openstack_control_address} |
| 87 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 88 | config_only: true |
Inessa Vasilevskaya | bd0a0dd | 2018-11-19 15:26:56 +0100 | [diff] [blame] | 89 | configdb_log_dir: ${_param:opencontrail_host_configdb_log_dir} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 90 | analytics: |
| 91 | members: |
| 92 | - host: ${_param:opencontrail_analytics_node01_address} |
| 93 | - host: ${_param:opencontrail_analytics_node02_address} |
| 94 | - host: ${_param:opencontrail_analytics_node03_address} |
| 95 | linux: |
| 96 | system: |
| 97 | kernel: |
| 98 | modules: |
| 99 | - nf_conntrack_ipv4 |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 100 | docker: |
| 101 | client: |
| 102 | compose: |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 103 | opencontrail: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 104 | status: up |
| 105 | pull: true |
| 106 | service: |
| 107 | controller: |
| 108 | image: ${_param:opencontrail_controller_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 109 | container_name: ${_param:opencontrail_controller_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 110 | volumes: |
| 111 | - /etc/contrail:/etc/contrail |
Inessa Vasilevskaya | a5610b2 | 2018-12-27 13:21:28 +0100 | [diff] [blame] | 112 | - /etc/redis/redis_webui.conf:/etc/redis/redis.conf |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 113 | - /var/lib/configdb:/var/lib/cassandra |
| 114 | - /var/lib/config_zookeeper_data:/var/lib/zookeeper |
| 115 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 116 | - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh |
| 117 | - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml |
| 118 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 119 | - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg |
| 120 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 121 | - /var/log/contrail:/var/log/contrail |
| 122 | - /var/log/journal/contrail-controller:/var/log/journal |
Inessa Vasilevskaya | bd0a0dd | 2018-11-19 15:26:56 +0100 | [diff] [blame] | 123 | - ${_param:opencontrail_host_configdb_log_dir}/cassandra:${_param:opencontrail_cassandra_log_dir} |
| 124 | - ${_param:opencontrail_host_configdb_log_dir}/zookeeper:${_param:opencontrail_zookeeper_log_dir} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 125 | network_mode: "host" |
| 126 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 127 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 128 | env_file: |
| 129 | - contrail.env |