Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - service.haproxy.proxy.single |
| 3 | - service.keepalived.cluster.single |
| 4 | - service.opencontrail.control.cluster |
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 | - system.haproxy.proxy.listen.opencontrail.analytics |
| 7 | parameters: |
| 8 | _param: |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 9 | opencontrail_kafka_log_cleanup_mtime: '+7' |
| 10 | opencontrail_kafka_log_cleanup_dir: '/usr/share/kafka/logs/' |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 11 | opencontrail_version: 4.0 |
| 12 | linux_repo_contrail_component: oc40 |
Petr Jediný | eb7fceb | 2018-06-21 19:17:27 +0200 | [diff] [blame] | 13 | opencontrail_image_tag: latest |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 14 | opencontrail_message_queue_node01_address: ${_param:openstack_control_node01_address} |
| 15 | opencontrail_message_queue_node02_address: ${_param:openstack_control_node02_address} |
| 16 | opencontrail_message_queue_node03_address: ${_param:openstack_control_node03_address} |
| 17 | opencontrail_message_queue_address: ${_param:openstack_control_address} |
azvyagintsev | 16ca7ce | 2018-08-21 17:20:33 +0300 | [diff] [blame] | 18 | opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag} |
| 19 | opencontrail_analyticsdb_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_image_tag} |
| 20 | 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] | 21 | opencontrail_controller_container_name: opencontrail_controller_1 |
| 22 | opencontrail_analytics_container_name: opencontrail_analytics_1 |
| 23 | opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1 |
Svimba | 483e809 | 2018-09-18 17:39:04 +0200 | [diff] [blame] | 24 | opencontrail_api_workers_count: 6 |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 25 | analytics_vip_address: ${_param:opencontrail_analytics_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 26 | # Temprorary fix for MOS9 packages to pin old version of kafka |
| 27 | linux: |
| 28 | system: |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 29 | kernel: |
| 30 | modules: |
| 31 | - nf_conntrack_ipv4 |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 32 | job: |
| 33 | kafka_logs_cleanup: |
| 34 | command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;" |
| 35 | identifier: kafka_logs_cleanup |
| 36 | hour: 0 |
| 37 | minute: 0 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 38 | opencontrail: |
| 39 | common: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 40 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 41 | identity: |
| 42 | host: ${_param:openstack_control_address} |
| 43 | network: |
| 44 | host: ${_param:openstack_control_address} |
| 45 | collector: |
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 | discovery: |
| 48 | host: None |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 49 | analytics: |
| 50 | members: |
| 51 | - host: ${_param:cluster_node01_address} |
| 52 | - host: ${_param:cluster_node02_address} |
| 53 | - host: ${_param:cluster_node03_address} |
| 54 | message_queue: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 55 | host: ${_param:opencontrail_message_queue_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 56 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 57 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 58 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 59 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 60 | config: |
| 61 | members: |
| 62 | - host: ${_param:cluster_node01_address} |
| 63 | - host: ${_param:cluster_node02_address} |
| 64 | - host: ${_param:cluster_node03_address} |
| 65 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 66 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 67 | discovery: |
| 68 | host: None |
| 69 | analytics: |
| 70 | members: |
| 71 | - host: ${_param:cluster_node01_address} |
| 72 | - host: ${_param:cluster_node02_address} |
| 73 | - host: ${_param:cluster_node03_address} |
| 74 | config: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 75 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 76 | network: |
| 77 | host: ${_param:openstack_control_address} |
| 78 | bind: |
| 79 | address: ${_param:cluster_local_address} |
| 80 | discovery: |
| 81 | host: None |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 82 | api: |
| 83 | host: ${_param:opencontrail_control_address} |
Svimba | 483e809 | 2018-09-18 17:39:04 +0200 | [diff] [blame] | 84 | workers_count: ${_param:opencontrail_api_workers_count} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 85 | analytics: |
| 86 | members: |
| 87 | - host: ${_param:cluster_node01_address} |
| 88 | - host: ${_param:cluster_node02_address} |
| 89 | - host: ${_param:cluster_node03_address} |
| 90 | message_queue: |
| 91 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 92 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 93 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 94 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 95 | identity: |
| 96 | region: ${_param:openstack_region} |
| 97 | host: ${_param:openstack_control_address} |
| 98 | control: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 99 | config_only: true |
Marek Celoud | 6d2f28c | 2017-12-01 15:09:47 +0100 | [diff] [blame] | 100 | identity: |
| 101 | host: ${_param:openstack_control_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 102 | analytics: |
| 103 | members: |
| 104 | - host: ${_param:cluster_node01_address} |
| 105 | - host: ${_param:cluster_node02_address} |
| 106 | - host: ${_param:cluster_node03_address} |
| 107 | message_queue: |
| 108 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 109 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 110 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 111 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 112 | database: |
| 113 | members: |
| 114 | - host: ${_param:cluster_node01_address} |
| 115 | - host: ${_param:cluster_node02_address} |
| 116 | - host: ${_param:cluster_node03_address} |
| 117 | discovery: |
| 118 | host: None |
| 119 | web: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 120 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 121 | analytics: |
| 122 | host: ${_param:opencontrail_control_address} |
| 123 | cache: |
| 124 | host: 127.0.0.1 |
| 125 | identity: |
| 126 | host: ${_param:openstack_control_address} |
| 127 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 128 | port: 9041 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 129 | network: |
| 130 | host: ${_param:openstack_control_address} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 131 | docker: |
| 132 | client: |
| 133 | compose: |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 134 | opencontrail: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 135 | status: up |
| 136 | pull: true |
| 137 | service: |
| 138 | controller: |
| 139 | image: ${_param:opencontrail_controller_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 140 | container_name: ${_param:opencontrail_controller_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 141 | volumes: |
| 142 | - /etc/contrail:/etc/contrail |
| 143 | - /var/lib/configdb:/var/lib/cassandra |
| 144 | - /var/lib/config_zookeeper_data:/var/lib/zookeeper |
| 145 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 146 | - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh |
| 147 | - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml |
| 148 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 149 | - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg |
| 150 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 151 | - /var/log/contrail:/var/log/contrail |
| 152 | - /var/log/journal/contrail-controller:/var/log/journal |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 153 | network_mode: "host" |
| 154 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 155 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 156 | env_file: |
| 157 | - contrail.env |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 158 | analytics: |
| 159 | image: ${_param:opencontrail_analytics_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 160 | container_name: ${_param:opencontrail_analytics_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 161 | network_mode: "host" |
| 162 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 163 | restart: always |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 164 | volumes: |
| 165 | - /etc/contrail:/etc/contrail |
| 166 | - /etc/redis/redis.conf:/etc/redis/redis.conf |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 167 | - /var/log/contrail:/var/log/contrail |
| 168 | - /var/log/journal/contrail-analytics:/var/log/journal |
| 169 | env_file: |
| 170 | - contrail.env |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 171 | analyticsdb: |
| 172 | image: ${_param:opencontrail_analyticsdb_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 173 | container_name: ${_param:opencontrail_analyticsdb_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 174 | volumes: |
| 175 | - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh |
| 176 | - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml |
| 177 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 178 | - /etc/contrail:/etc/contrail |
| 179 | - /var/lib/analyticsdb:/var/lib/cassandra |
| 180 | - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper |
| 181 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 182 | - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties |
| 183 | - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties |
| 184 | - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 185 | - /usr/share/kafka/logs:/usr/share/kafka/logs |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 186 | - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg |
| 187 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 188 | - /var/log/contrail:/var/log/contrail |
| 189 | - /var/log/journal/contrail-analyticsdb:/var/log/journal |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 190 | network_mode: "host" |
| 191 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 192 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 193 | env_file: |
| 194 | - contrail.env |