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: |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 7 | opencontrail_kafka_log_cleanup_mtime: '+7' |
| 8 | opencontrail_kafka_log_cleanup_dir: '/usr/share/kafka/logs/' |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 9 | opencontrail_version: 4.0 |
| 10 | linux_repo_contrail_component: oc40 |
Petr Jediný | eb7fceb | 2018-06-21 19:17:27 +0200 | [diff] [blame] | 11 | opencontrail_image_tag: latest |
azvyagintsev | 16ca7ce | 2018-08-21 17:20:33 +0300 | [diff] [blame] | 12 | opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag} |
| 13 | opencontrail_analyticsdb_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_image_tag} |
| 14 | 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] | 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: |
| 29 | command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;" |
| 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: |
| 96 | members: |
| 97 | - host: ${_param:openstack_control_address} |
| 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 | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 103 | analytics: |
| 104 | members: |
| 105 | - host: ${_param:single_address} |
| 106 | message_queue: |
| 107 | members: |
| 108 | - host: ${_param:openstack_control_address} |
| 109 | database: |
| 110 | members: |
| 111 | - host: ${_param:single_address} |
| 112 | discovery: |
| 113 | host: None |
| 114 | web: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 115 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 116 | analytics: |
| 117 | host: ${_param:single_address} |
| 118 | cache: |
| 119 | host: 127.0.0.1 |
| 120 | identity: |
| 121 | host: ${_param:openstack_control_address} |
| 122 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 123 | port: 9041 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 124 | network: |
| 125 | host: ${_param:openstack_control_address} |
| 126 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 127 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 128 | analytics: |
| 129 | members: |
| 130 | - host: ${_param:single_address} |
| 131 | collector: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 132 | config_only: true |
Marek Celoud | 6d2f28c | 2017-12-01 15:09:47 +0100 | [diff] [blame] | 133 | identity: |
| 134 | host: ${_param:openstack_control_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 135 | discovery: |
| 136 | host: None |
| 137 | database: |
| 138 | members: |
| 139 | - host: ${_param:single_address} |
| 140 | analytics: |
| 141 | members: |
| 142 | - host: ${_param:single_address} |
| 143 | message_queue: |
| 144 | host: ${_param:openstack_control_address} |
| 145 | members: |
| 146 | - host: ${_param:openstack_control_address} |
| 147 | config: |
| 148 | members: |
| 149 | - host: ${_param:single_address} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 150 | docker: |
| 151 | client: |
| 152 | compose: |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 153 | opencontrail: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 154 | status: up |
| 155 | pull: true |
| 156 | service: |
| 157 | controller: |
| 158 | image: ${_param:opencontrail_controller_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 159 | container_name: ${_param:opencontrail_controller_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 160 | volumes: |
| 161 | - /etc/contrail:/etc/contrail |
| 162 | - /var/lib/configdb:/var/lib/cassandra |
| 163 | - /var/lib/config_zookeeper_data:/var/lib/zookeeper |
| 164 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 165 | - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh |
| 166 | - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml |
| 167 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 168 | - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg |
| 169 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 170 | - /var/log/contrail:/var/log/contrail |
| 171 | - /var/log/journal/contrail-controller:/var/log/journal |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 172 | network_mode: "host" |
| 173 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 174 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 175 | env_file: |
| 176 | - contrail.env |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 177 | analytics: |
| 178 | image: ${_param:opencontrail_analytics_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 179 | container_name: ${_param:opencontrail_analytics_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 180 | network_mode: "host" |
| 181 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 182 | restart: always |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 183 | volumes: |
| 184 | - /etc/contrail:/etc/contrail |
| 185 | - /etc/redis/redis.conf:/etc/redis/redis.conf |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 186 | - /var/log/contrail:/var/log/contrail |
| 187 | - /var/log/journal/contrail-analytics:/var/log/journal |
| 188 | env_file: |
| 189 | - contrail.env |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 190 | analyticsdb: |
| 191 | image: ${_param:opencontrail_analyticsdb_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 192 | container_name: ${_param:opencontrail_analyticsdb_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 193 | volumes: |
| 194 | - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh |
| 195 | - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml |
| 196 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 197 | - /etc/contrail:/etc/contrail |
| 198 | - /var/lib/analyticsdb:/var/lib/cassandra |
| 199 | - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper |
| 200 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 201 | - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties |
| 202 | - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties |
| 203 | - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 204 | - /usr/share/kafka/logs:/usr/share/kafka/logs |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 205 | - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg |
| 206 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 207 | - /var/log/contrail:/var/log/contrail |
| 208 | - /var/log/journal/contrail-analyticsdb:/var/log/journal |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 209 | network_mode: "host" |
| 210 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 211 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 212 | env_file: |
| 213 | - contrail.env |