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