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