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