Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 1 | classes: |
Svimba | cfbe699 | 2018-06-08 13:56:05 +0200 | [diff] [blame] | 2 | - service.docker.host |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 3 | - service.opencontrail.control.single |
| 4 | - service.haproxy.proxy.single |
| 5 | parameters: |
| 6 | _param: |
Anton Samoylov | 73f12db | 2018-12-12 18:34:24 +0400 | [diff] [blame] | 7 | opencontrail_kafka_config_dir: '/usr/share/kafka/config' |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 8 | opencontrail_kafka_log_cleanup_mtime: '+7' |
Anton Samoylov | 73f12db | 2018-12-12 18:34:24 +0400 | [diff] [blame] | 9 | opencontrail_kafka_log_dir: '/usr/share/kafka/logs' |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 10 | opencontrail_version: 4.0 |
| 11 | linux_repo_contrail_component: oc40 |
Anton Samoylov | f05f9a8 | 2019-03-28 16:38:41 +0400 | [diff] [blame] | 12 | opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_docker_image_tag} |
| 13 | opencontrail_analyticsdb_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_docker_image_tag} |
| 14 | opencontrail_controller_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-controller:${_param:opencontrail_docker_image_tag} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 15 | opencontrail_controller_container_name: opencontrail_controller_1 |
| 16 | opencontrail_analytics_container_name: opencontrail_analytics_1 |
| 17 | opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 18 | # Temprorary fix for MOS9 packages to pin old version of kafka |
| 19 | linux: |
| 20 | system: |
| 21 | package: |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 22 | contrail-api-cli: |
| 23 | version: latest |
| 24 | kernel: |
| 25 | modules: |
| 26 | - nf_conntrack_ipv4 |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 27 | job: |
| 28 | kafka_logs_cleanup: |
Anton Samoylov | 73f12db | 2018-12-12 18:34:24 +0400 | [diff] [blame] | 29 | 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] | 30 | identifier: kafka_logs_cleanup |
| 31 | hour: 0 |
| 32 | minute: 0 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 33 | haproxy: |
| 34 | proxy: |
| 35 | listen: |
| 36 | contrail_api: |
| 37 | type: contrail-api |
| 38 | service_name: contrail |
| 39 | check: false |
| 40 | binds: |
| 41 | - address: ${_param:single_address} |
| 42 | port: 8082 |
| 43 | servers: |
| 44 | - name: ctl01 |
| 45 | host: ${_param:single_address} |
| 46 | port: 9100 |
| 47 | params: check inter 2000 rise 2 fall 3 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 48 | contrail_config_stats: |
| 49 | type: contrail-config |
| 50 | service_name: contrail |
| 51 | format: listen |
| 52 | binds: |
| 53 | - address: '*' |
| 54 | port: 5937 |
| 55 | user: haproxy |
| 56 | password: ${_param:opencontrail_stats_password} |
| 57 | contrail_openstack_stats: |
| 58 | type: contrail-config |
| 59 | service_name: contrail |
| 60 | format: listen |
| 61 | binds: |
| 62 | - address: '*' |
| 63 | port: 5936 |
| 64 | user: haproxy |
| 65 | password: ${_param:opencontrail_stats_password} |
| 66 | contrail_collector_stats: |
| 67 | type: contrail-config |
| 68 | service_name: contrail |
| 69 | format: listen |
| 70 | binds: |
| 71 | - address: '*' |
| 72 | port: 5938 |
| 73 | user: haproxy |
| 74 | password: ${_param:opencontrail_stats_password} |
| 75 | opencontrail: |
| 76 | common: |
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 | identity: |
| 79 | host: ${_param:openstack_control_address} |
| 80 | network: |
| 81 | host: ${_param:openstack_control_address} |
| 82 | config: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 83 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 84 | network: |
| 85 | host: ${_param:openstack_control_address} |
| 86 | bind: |
| 87 | address: ${_param:single_address} |
| 88 | discovery: |
| 89 | host: None |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 90 | api: |
| 91 | host: ${_param:single_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 92 | analytics: |
| 93 | members: |
| 94 | - host: ${_param:single_address} |
| 95 | message_queue: |
Svimba | a1b2451 | 2018-12-13 10:55:29 +0100 | [diff] [blame] | 96 | password: ${_param:opencontrail_message_queue_password} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 97 | members: |
| 98 | - host: ${_param:openstack_control_address} |
| 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 | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 104 | analytics: |
| 105 | members: |
| 106 | - host: ${_param:single_address} |
| 107 | message_queue: |
Svimba | a1b2451 | 2018-12-13 10:55:29 +0100 | [diff] [blame] | 108 | password: ${_param:opencontrail_message_queue_password} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 109 | members: |
| 110 | - host: ${_param:openstack_control_address} |
| 111 | database: |
| 112 | members: |
| 113 | - host: ${_param:single_address} |
| 114 | discovery: |
| 115 | host: None |
| 116 | web: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 117 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 118 | analytics: |
| 119 | host: ${_param:single_address} |
| 120 | cache: |
| 121 | host: 127.0.0.1 |
| 122 | identity: |
| 123 | host: ${_param:openstack_control_address} |
| 124 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 125 | port: 9041 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 126 | network: |
| 127 | host: ${_param:openstack_control_address} |
| 128 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 129 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 130 | analytics: |
| 131 | members: |
| 132 | - host: ${_param:single_address} |
| 133 | collector: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 134 | config_only: true |
Marek Celoud | 6d2f28c | 2017-12-01 15:09:47 +0100 | [diff] [blame] | 135 | identity: |
| 136 | host: ${_param:openstack_control_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 137 | discovery: |
| 138 | host: None |
| 139 | database: |
| 140 | members: |
| 141 | - host: ${_param:single_address} |
| 142 | analytics: |
| 143 | members: |
| 144 | - host: ${_param:single_address} |
| 145 | message_queue: |
| 146 | host: ${_param:openstack_control_address} |
Svimba | a1b2451 | 2018-12-13 10:55:29 +0100 | [diff] [blame] | 147 | password: ${_param:opencontrail_message_queue_password} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 148 | members: |
| 149 | - host: ${_param:openstack_control_address} |
| 150 | config: |
| 151 | members: |
| 152 | - host: ${_param:single_address} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 153 | docker: |
| 154 | client: |
| 155 | compose: |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 156 | opencontrail: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 157 | status: up |
| 158 | pull: true |
| 159 | service: |
| 160 | controller: |
| 161 | image: ${_param:opencontrail_controller_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 162 | container_name: ${_param:opencontrail_controller_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 163 | volumes: |
| 164 | - /etc/contrail:/etc/contrail |
Inessa Vasilevskaya | 8833744 | 2018-12-27 13:21:28 +0100 | [diff] [blame] | 165 | - /etc/redis/redis_webui.conf:/etc/redis/redis.conf |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 166 | - /var/lib/configdb:/var/lib/cassandra |
| 167 | - /var/lib/config_zookeeper_data:/var/lib/zookeeper |
| 168 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 169 | - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh |
| 170 | - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml |
| 171 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 172 | - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg |
| 173 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 174 | - /var/log/contrail:/var/log/contrail |
| 175 | - /var/log/journal/contrail-controller:/var/log/journal |
Anton Samoylov | 5d5a1ca | 2019-06-19 15:02:31 +0400 | [diff] [blame] | 176 | - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 177 | network_mode: "host" |
| 178 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 179 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 180 | env_file: |
| 181 | - contrail.env |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 182 | analytics: |
| 183 | image: ${_param:opencontrail_analytics_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 184 | container_name: ${_param:opencontrail_analytics_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 185 | network_mode: "host" |
| 186 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 187 | restart: always |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 188 | volumes: |
| 189 | - /etc/contrail:/etc/contrail |
| 190 | - /etc/redis/redis.conf:/etc/redis/redis.conf |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 191 | - /var/log/contrail:/var/log/contrail |
| 192 | - /var/log/journal/contrail-analytics:/var/log/journal |
Anton Samoylov | 5d5a1ca | 2019-06-19 15:02:31 +0400 | [diff] [blame] | 193 | - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 194 | env_file: |
| 195 | - contrail.env |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 196 | analyticsdb: |
| 197 | image: ${_param:opencontrail_analyticsdb_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 198 | container_name: ${_param:opencontrail_analyticsdb_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 199 | volumes: |
| 200 | - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh |
| 201 | - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml |
| 202 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 203 | - /etc/contrail:/etc/contrail |
| 204 | - /var/lib/analyticsdb:/var/lib/cassandra |
| 205 | - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper |
| 206 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
Anton Samoylov | 73f12db | 2018-12-12 18:34:24 +0400 | [diff] [blame] | 207 | - ${_param:opencontrail_kafka_config_dir}/server.properties:${_param:opencontrail_kafka_config_dir}/server.properties |
| 208 | - ${_param:opencontrail_kafka_config_dir}/consumer.properties:${_param:opencontrail_kafka_config_dir}/consumer.properties |
| 209 | - ${_param:opencontrail_kafka_config_dir}/zookeeper.properties:${_param:opencontrail_kafka_config_dir}/zookeeper.properties |
| 210 | - ${_param:opencontrail_kafka_log_dir}:${_param:opencontrail_kafka_log_dir} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 211 | - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg |
| 212 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 213 | - /var/log/contrail:/var/log/contrail |
| 214 | - /var/log/journal/contrail-analyticsdb:/var/log/journal |
Anton Samoylov | 5d5a1ca | 2019-06-19 15:02:31 +0400 | [diff] [blame] | 215 | - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 216 | network_mode: "host" |
| 217 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 218 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 219 | env_file: |
| 220 | - contrail.env |