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 |
| 12 | opencontrail_analytics_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag} |
| 13 | opencontrail_analyticsdb_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_image_tag} |
| 14 | opencontrail_controller_image: docker-prod-local.artifactory.mirantis.com/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 |
| 48 | contrail_discovery: |
| 49 | type: contrail-api |
| 50 | service_name: contrail |
| 51 | binds: |
| 52 | - address: ${_param:single_address} |
| 53 | port: 5998 |
| 54 | servers: |
| 55 | - name: ctl01 |
| 56 | host: ${_param:single_address} |
| 57 | port: 9110 |
| 58 | params: check inter 2000 rise 2 fall 3 |
| 59 | contrail_config_stats: |
| 60 | type: contrail-config |
| 61 | service_name: contrail |
| 62 | format: listen |
| 63 | binds: |
| 64 | - address: '*' |
| 65 | port: 5937 |
| 66 | user: haproxy |
| 67 | password: ${_param:opencontrail_stats_password} |
| 68 | contrail_openstack_stats: |
| 69 | type: contrail-config |
| 70 | service_name: contrail |
| 71 | format: listen |
| 72 | binds: |
| 73 | - address: '*' |
| 74 | port: 5936 |
| 75 | user: haproxy |
| 76 | password: ${_param:opencontrail_stats_password} |
| 77 | contrail_collector_stats: |
| 78 | type: contrail-config |
| 79 | service_name: contrail |
| 80 | format: listen |
| 81 | binds: |
| 82 | - address: '*' |
| 83 | port: 5938 |
| 84 | user: haproxy |
| 85 | password: ${_param:opencontrail_stats_password} |
| 86 | opencontrail: |
| 87 | common: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 88 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 89 | identity: |
| 90 | host: ${_param:openstack_control_address} |
| 91 | network: |
| 92 | host: ${_param:openstack_control_address} |
| 93 | config: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 94 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 95 | network: |
| 96 | host: ${_param:openstack_control_address} |
| 97 | bind: |
| 98 | address: ${_param:single_address} |
| 99 | discovery: |
| 100 | host: None |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 101 | api: |
| 102 | host: ${_param:single_address} |
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 | identity: |
| 110 | region: ${_param:openstack_region} |
| 111 | host: ${_param:openstack_control_address} |
| 112 | control: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 113 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 114 | analytics: |
| 115 | members: |
| 116 | - host: ${_param:single_address} |
| 117 | message_queue: |
| 118 | members: |
| 119 | - host: ${_param:openstack_control_address} |
| 120 | database: |
| 121 | members: |
| 122 | - host: ${_param:single_address} |
| 123 | discovery: |
| 124 | host: None |
| 125 | web: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 126 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 127 | analytics: |
| 128 | host: ${_param:single_address} |
| 129 | cache: |
| 130 | host: 127.0.0.1 |
| 131 | identity: |
| 132 | host: ${_param:openstack_control_address} |
| 133 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 134 | port: 9041 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 135 | network: |
| 136 | host: ${_param:openstack_control_address} |
| 137 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 138 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 139 | analytics: |
| 140 | members: |
| 141 | - host: ${_param:single_address} |
| 142 | collector: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 143 | config_only: true |
Marek Celoud | 6d2f28c | 2017-12-01 15:09:47 +0100 | [diff] [blame] | 144 | identity: |
| 145 | host: ${_param:openstack_control_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 146 | discovery: |
| 147 | host: None |
| 148 | database: |
| 149 | members: |
| 150 | - host: ${_param:single_address} |
| 151 | analytics: |
| 152 | members: |
| 153 | - host: ${_param:single_address} |
| 154 | message_queue: |
| 155 | host: ${_param:openstack_control_address} |
| 156 | members: |
| 157 | - host: ${_param:openstack_control_address} |
| 158 | config: |
| 159 | members: |
| 160 | - host: ${_param:single_address} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 161 | docker: |
| 162 | client: |
| 163 | compose: |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 164 | opencontrail: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 165 | status: up |
| 166 | pull: true |
| 167 | service: |
| 168 | controller: |
| 169 | image: ${_param:opencontrail_controller_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 170 | container_name: ${_param:opencontrail_controller_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 171 | volumes: |
| 172 | - /etc/contrail:/etc/contrail |
| 173 | - /var/lib/configdb:/var/lib/cassandra |
| 174 | - /var/lib/config_zookeeper_data:/var/lib/zookeeper |
| 175 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 176 | - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh |
| 177 | - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml |
| 178 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 179 | - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg |
| 180 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 181 | - /var/log/contrail:/var/log/contrail |
| 182 | - /var/log/journal/contrail-controller:/var/log/journal |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 183 | network_mode: "host" |
| 184 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 185 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 186 | env_file: |
| 187 | - contrail.env |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 188 | analytics: |
| 189 | image: ${_param:opencontrail_analytics_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 190 | container_name: ${_param:opencontrail_analytics_container_name} |
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 |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 194 | volumes: |
| 195 | - /etc/contrail:/etc/contrail |
| 196 | - /etc/redis/redis.conf:/etc/redis/redis.conf |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 197 | - /var/log/contrail:/var/log/contrail |
| 198 | - /var/log/journal/contrail-analytics:/var/log/journal |
| 199 | env_file: |
| 200 | - contrail.env |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 201 | analyticsdb: |
| 202 | image: ${_param:opencontrail_analyticsdb_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 203 | container_name: ${_param:opencontrail_analyticsdb_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 204 | volumes: |
| 205 | - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh |
| 206 | - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml |
| 207 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 208 | - /etc/contrail:/etc/contrail |
| 209 | - /var/lib/analyticsdb:/var/lib/cassandra |
| 210 | - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper |
| 211 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 212 | - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties |
| 213 | - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties |
| 214 | - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 215 | - /usr/share/kafka/logs:/usr/share/kafka/logs |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 216 | - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg |
| 217 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 218 | - /var/log/contrail:/var/log/contrail |
| 219 | - /var/log/journal/contrail-analyticsdb:/var/log/journal |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 220 | network_mode: "host" |
| 221 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 222 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 223 | env_file: |
| 224 | - contrail.env |