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