Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - service.haproxy.proxy.single |
| 3 | - service.keepalived.cluster.single |
| 4 | - service.opencontrail.control.cluster |
| 5 | - system.haproxy.proxy.listen.opencontrail.control |
| 6 | - system.haproxy.proxy.listen.opencontrail.analytics |
| 7 | parameters: |
| 8 | _param: |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 9 | opencontrail_kafka_log_cleanup_mtime: '+7' |
| 10 | opencontrail_kafka_log_cleanup_dir: '/usr/share/kafka/logs/' |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 11 | opencontrail_version: 4.0 |
| 12 | linux_repo_contrail_component: oc40 |
Petr Jediný | eb7fceb | 2018-06-21 19:17:27 +0200 | [diff] [blame] | 13 | opencontrail_image_tag: latest |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 14 | opencontrail_message_queue_node01_address: ${_param:openstack_control_node01_address} |
| 15 | opencontrail_message_queue_node02_address: ${_param:openstack_control_node02_address} |
| 16 | opencontrail_message_queue_node03_address: ${_param:openstack_control_node03_address} |
| 17 | opencontrail_message_queue_address: ${_param:openstack_control_address} |
Petr Jediný | eb7fceb | 2018-06-21 19:17:27 +0200 | [diff] [blame] | 18 | opencontrail_analytics_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag} |
| 19 | opencontrail_analyticsdb_image: docker-prod-local.artifactory.mirantis.com/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_image_tag} |
| 20 | 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] | 21 | opencontrail_controller_container_name: opencontrail_controller_1 |
| 22 | opencontrail_analytics_container_name: opencontrail_analytics_1 |
| 23 | opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1 |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 24 | analytics_vip_address: ${_param:opencontrail_analytics_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 25 | # Temprorary fix for MOS9 packages to pin old version of kafka |
| 26 | linux: |
| 27 | system: |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 28 | kernel: |
| 29 | modules: |
| 30 | - nf_conntrack_ipv4 |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 31 | job: |
| 32 | kafka_logs_cleanup: |
| 33 | command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;" |
| 34 | identifier: kafka_logs_cleanup |
| 35 | hour: 0 |
| 36 | minute: 0 |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 37 | opencontrail: |
| 38 | common: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 39 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 40 | identity: |
| 41 | host: ${_param:openstack_control_address} |
| 42 | network: |
| 43 | host: ${_param:openstack_control_address} |
| 44 | collector: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 45 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 46 | discovery: |
| 47 | host: None |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 48 | analytics: |
| 49 | members: |
| 50 | - host: ${_param:cluster_node01_address} |
| 51 | - host: ${_param:cluster_node02_address} |
| 52 | - host: ${_param:cluster_node03_address} |
| 53 | message_queue: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 54 | host: ${_param:opencontrail_message_queue_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 55 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 56 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 57 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 58 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 59 | config: |
| 60 | members: |
| 61 | - host: ${_param:cluster_node01_address} |
| 62 | - host: ${_param:cluster_node02_address} |
| 63 | - host: ${_param:cluster_node03_address} |
| 64 | database: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 65 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 66 | discovery: |
| 67 | host: None |
| 68 | analytics: |
| 69 | members: |
| 70 | - host: ${_param:cluster_node01_address} |
| 71 | - host: ${_param:cluster_node02_address} |
| 72 | - host: ${_param:cluster_node03_address} |
| 73 | config: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 74 | config_only: true |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 75 | network: |
| 76 | host: ${_param:openstack_control_address} |
| 77 | bind: |
| 78 | address: ${_param:cluster_local_address} |
| 79 | discovery: |
| 80 | host: None |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 81 | api: |
| 82 | host: ${_param:opencontrail_control_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 83 | analytics: |
| 84 | members: |
| 85 | - host: ${_param:cluster_node01_address} |
| 86 | - host: ${_param:cluster_node02_address} |
| 87 | - host: ${_param:cluster_node03_address} |
| 88 | message_queue: |
| 89 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 90 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 91 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 92 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 93 | identity: |
| 94 | region: ${_param:openstack_region} |
| 95 | host: ${_param:openstack_control_address} |
| 96 | control: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 97 | config_only: true |
Marek Celoud | 6d2f28c | 2017-12-01 15:09:47 +0100 | [diff] [blame] | 98 | identity: |
| 99 | host: ${_param:openstack_control_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 100 | analytics: |
| 101 | members: |
| 102 | - host: ${_param:cluster_node01_address} |
| 103 | - host: ${_param:cluster_node02_address} |
| 104 | - host: ${_param:cluster_node03_address} |
| 105 | message_queue: |
| 106 | members: |
Marek Celoud | cba1a44 | 2017-06-20 17:14:34 +0200 | [diff] [blame] | 107 | - host: ${_param:opencontrail_message_queue_node01_address} |
| 108 | - host: ${_param:opencontrail_message_queue_node02_address} |
| 109 | - host: ${_param:opencontrail_message_queue_node03_address} |
Marek Celoud | a2f29f0 | 2017-06-16 14:47:31 +0200 | [diff] [blame] | 110 | database: |
| 111 | members: |
| 112 | - host: ${_param:cluster_node01_address} |
| 113 | - host: ${_param:cluster_node02_address} |
| 114 | - host: ${_param:cluster_node03_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:opencontrail_control_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} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 129 | docker: |
| 130 | client: |
| 131 | compose: |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 132 | opencontrail: |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 133 | status: up |
| 134 | pull: true |
| 135 | service: |
| 136 | controller: |
| 137 | image: ${_param:opencontrail_controller_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 138 | container_name: ${_param:opencontrail_controller_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 139 | volumes: |
| 140 | - /etc/contrail:/etc/contrail |
| 141 | - /var/lib/configdb:/var/lib/cassandra |
| 142 | - /var/lib/config_zookeeper_data:/var/lib/zookeeper |
| 143 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 144 | - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh |
| 145 | - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml |
| 146 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 147 | - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg |
| 148 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 149 | - /var/log/contrail:/var/log/contrail |
| 150 | - /var/log/journal/contrail-controller:/var/log/journal |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 151 | network_mode: "host" |
| 152 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 153 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 154 | env_file: |
| 155 | - contrail.env |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 156 | analytics: |
| 157 | image: ${_param:opencontrail_analytics_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 158 | container_name: ${_param:opencontrail_analytics_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 159 | network_mode: "host" |
| 160 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 161 | restart: always |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 162 | volumes: |
| 163 | - /etc/contrail:/etc/contrail |
| 164 | - /etc/redis/redis.conf:/etc/redis/redis.conf |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 165 | - /var/log/contrail:/var/log/contrail |
| 166 | - /var/log/journal/contrail-analytics:/var/log/journal |
| 167 | env_file: |
| 168 | - contrail.env |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 169 | analyticsdb: |
| 170 | image: ${_param:opencontrail_analyticsdb_image} |
Pavel Svimbersky | 38f216c | 2017-12-20 10:46:35 +0100 | [diff] [blame] | 171 | container_name: ${_param:opencontrail_analyticsdb_container_name} |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 172 | volumes: |
| 173 | - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh |
| 174 | - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml |
| 175 | - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml |
| 176 | - /etc/contrail:/etc/contrail |
| 177 | - /var/lib/analyticsdb:/var/lib/cassandra |
| 178 | - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper |
| 179 | - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid |
| 180 | - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties |
| 181 | - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties |
| 182 | - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties |
Petr Jediný | 1262488 | 2017-12-04 17:06:12 +0100 | [diff] [blame] | 183 | - /usr/share/kafka/logs:/usr/share/kafka/logs |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 184 | - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg |
| 185 | - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 186 | - /var/log/contrail:/var/log/contrail |
| 187 | - /var/log/journal/contrail-analyticsdb:/var/log/journal |
Marek Celoud | fa1fa51 | 2017-11-03 16:07:04 +0100 | [diff] [blame] | 188 | network_mode: "host" |
| 189 | privileged: true |
psvimbersky | a5463c9 | 2018-01-02 14:10:54 +0100 | [diff] [blame] | 190 | restart: always |
Svimba | d3e5938 | 2018-07-03 12:25:19 +0200 | [diff] [blame] | 191 | env_file: |
| 192 | - contrail.env |