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} |
Svimba | a1b2451 | 2018-12-13 10:55:29 +0100 | [diff] [blame^] | 18 | opencontrail_message_queue_password: guest |
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 | 483e809 | 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} |
Svimba | a1b2451 | 2018-12-13 10:55:29 +0100 | [diff] [blame^] | 57 | password: ${_param:opencontrail_message_queue_password} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 58 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 59 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 60 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 61 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 62 | config: |
| 63 | members: |
| 64 | - host: ${_param:cluster_node01_address} |
| 65 | - host: ${_param:cluster_node02_address} |
| 66 | - host: ${_param:cluster_node03_address} |
| 67 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 68 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 69 | discovery: |
| 70 | host: None |
| 71 | analytics: |
| 72 | members: |
| 73 | - host: ${_param:cluster_node01_address} |
| 74 | - host: ${_param:cluster_node02_address} |
| 75 | - host: ${_param:cluster_node03_address} |
| 76 | config: |
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 | network: |
| 79 | host: ${_param:openstack_control_address} |
| 80 | bind: |
| 81 | address: ${_param:cluster_local_address} |
| 82 | discovery: |
| 83 | host: None |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 84 | api: |
| 85 | host: ${_param:opencontrail_control_address} |
Svimba | 483e809 | 2018-09-18 17:39:04 +0200 | [diff] [blame] | 86 | workers_count: ${_param:opencontrail_api_workers_count} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 87 | analytics: |
| 88 | members: |
| 89 | - host: ${_param:cluster_node01_address} |
| 90 | - host: ${_param:cluster_node02_address} |
| 91 | - host: ${_param:cluster_node03_address} |
| 92 | message_queue: |
Svimba | a1b2451 | 2018-12-13 10:55:29 +0100 | [diff] [blame^] | 93 | password: ${_param:opencontrail_message_queue_password} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 94 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 95 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 96 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 97 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 98 | identity: |
| 99 | region: ${_param:openstack_region} |
| 100 | host: ${_param:openstack_control_address} |
| 101 | control: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 102 | config_only: true |
Marek Celoud | 6d2f28c | 2017-12-01 15:09:47 +0100 | [diff] [blame] | 103 | identity: |
| 104 | host: ${_param:openstack_control_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 105 | analytics: |
| 106 | members: |
| 107 | - host: ${_param:cluster_node01_address} |
| 108 | - host: ${_param:cluster_node02_address} |
| 109 | - host: ${_param:cluster_node03_address} |
| 110 | message_queue: |
Svimba | a1b2451 | 2018-12-13 10:55:29 +0100 | [diff] [blame^] | 111 | password: ${_param:opencontrail_message_queue_password} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 112 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 113 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 114 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 115 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 116 | database: |
| 117 | members: |
| 118 | - host: ${_param:cluster_node01_address} |
| 119 | - host: ${_param:cluster_node02_address} |
| 120 | - host: ${_param:cluster_node03_address} |
| 121 | discovery: |
| 122 | host: None |
| 123 | web: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 124 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 125 | analytics: |
| 126 | host: ${_param:opencontrail_control_address} |
| 127 | cache: |
| 128 | host: 127.0.0.1 |
| 129 | identity: |
| 130 | host: ${_param:openstack_control_address} |
| 131 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 132 | port: 9041 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 133 | network: |
| 134 | host: ${_param:openstack_control_address} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 135 | docker: |
| 136 | client: |
| 137 | compose: |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 138 | opencontrail: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 139 | status: up |
| 140 | pull: true |
| 141 | service: |
| 142 | controller: |
| 143 | image: ${_param:opencontrail_controller_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 144 | container_name: ${_param:opencontrail_controller_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 145 | volumes: |
| 146 | - /etc/contrail:/etc/contrail |
| 147 | - /var/lib/configdb:/var/lib/cassandra |
| 148 | - /var/lib/config_zookeeper_data:/var/lib/zookeeper |
| 149 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 150 | - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh |
| 151 | - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml |
| 152 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 153 | - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg |
| 154 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 155 | - /var/log/contrail:/var/log/contrail |
| 156 | - /var/log/journal/contrail-controller:/var/log/journal |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 157 | network_mode: "host" |
| 158 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 159 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 160 | env_file: |
| 161 | - contrail.env |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 162 | analytics: |
| 163 | image: ${_param:opencontrail_analytics_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 164 | container_name: ${_param:opencontrail_analytics_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 165 | network_mode: "host" |
| 166 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 167 | restart: always |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 168 | volumes: |
| 169 | - /etc/contrail:/etc/contrail |
| 170 | - /etc/redis/redis.conf:/etc/redis/redis.conf |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 171 | - /var/log/contrail:/var/log/contrail |
| 172 | - /var/log/journal/contrail-analytics:/var/log/journal |
| 173 | env_file: |
| 174 | - contrail.env |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 175 | analyticsdb: |
| 176 | image: ${_param:opencontrail_analyticsdb_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 177 | container_name: ${_param:opencontrail_analyticsdb_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 178 | volumes: |
| 179 | - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh |
| 180 | - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml |
| 181 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 182 | - /etc/contrail:/etc/contrail |
| 183 | - /var/lib/analyticsdb:/var/lib/cassandra |
| 184 | - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper |
| 185 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 186 | - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties |
| 187 | - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties |
| 188 | - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 189 | - /usr/share/kafka/logs:/usr/share/kafka/logs |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 190 | - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg |
| 191 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 192 | - /var/log/contrail:/var/log/contrail |
| 193 | - /var/log/journal/contrail-analyticsdb:/var/log/journal |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 194 | network_mode: "host" |
| 195 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 196 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 197 | env_file: |
| 198 | - contrail.env |