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