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