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