blob: 8271c7f2e1cd8ed6f96092a2a92c74ee1b8ee816 [file] [log] [blame]
Marek Celouda2f29f02017-06-16 14:47:31 +02001classes:
Svimbacfbe6992018-06-08 13:56:05 +02002- service.docker.host
Marek Celouda2f29f02017-06-16 14:47:31 +02003- service.haproxy.proxy.single
4- service.keepalived.cluster.single
5- service.opencontrail.control.analytics
6- system.haproxy.proxy.listen.opencontrail.analytics
7parameters:
8 _param:
Petr Jediný12624882017-12-04 17:06:12 +01009 opencontrail_kafka_log_cleanup_mtime: '+7'
10 opencontrail_kafka_log_cleanup_dir: '/usr/share/kafka/logs/'
Marek Celouda2f29f02017-06-16 14:47:31 +020011 opencontrail_version: 4.0
12 linux_repo_contrail_component: oc40
Petr Jedinýeb7fceb2018-06-21 19:17:27 +020013 opencontrail_image_tag: latest
Marek Celoudcba1a442017-06-20 17:14:34 +020014 opencontrail_message_queue_node01_address: ${_param:openstack_message_queue_node01_address}
15 opencontrail_message_queue_node02_address: ${_param:openstack_message_queue_node02_address}
16 opencontrail_message_queue_node03_address: ${_param:openstack_message_queue_node03_address}
17 opencontrail_message_queue_address: ${_param:openstack_message_queue_address}
Svimbaa1b24512018-12-13 10:55:29 +010018 opencontrail_message_queue_password: guest
azvyagintsev16ca7ce2018-08-21 17:20:33 +030019 opencontrail_analytics_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analytics:${_param:opencontrail_image_tag}
20 opencontrail_analyticsdb_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-analyticsdb:${_param:opencontrail_image_tag}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010021 opencontrail_analytics_container_name: opencontrail_analytics_1
22 opencontrail_analyticsdb_container_name: opencontrail_analyticsdb_1
Marek Celouda2f29f02017-06-16 14:47:31 +020023# Temprorary fix for MOS9 packages to pin old version of kafka
24 linux:
25 system:
Marek Celouda2f29f02017-06-16 14:47:31 +020026 kernel:
27 modules:
28 - nf_conntrack_ipv4
Petr Jediný12624882017-12-04 17:06:12 +010029 job:
30 kafka_logs_cleanup:
31 command: "find ${_param:opencontrail_kafka_log_cleanup_dir} -name '*.log.*' -type f -mtime ${_param:opencontrail_kafka_log_cleanup_mtime} -exec rm {} \\;"
32 identifier: kafka_logs_cleanup
33 hour: 0
34 minute: 0
Marek Celouda2f29f02017-06-16 14:47:31 +020035 opencontrail:
36 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010037 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020038 identity:
39 host: ${_param:openstack_control_address}
40 network:
41 host: ${_param:openstack_control_address}
42 collector:
Anton Samoylov9298f7d2018-10-23 23:30:41 +040043 role: ${_param:opencontrail_node_role}
Marek Celoudfa1fa512017-11-03 16:07:04 +010044 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020045 discovery:
46 host: None
Marek Celoud6d2f28c2017-12-01 15:09:47 +010047 identity:
48 host: ${_param:openstack_control_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020049 analytics:
50 members:
51 - host: ${_param:opencontrail_analytics_node01_address}
52 - host: ${_param:opencontrail_analytics_node02_address}
53 - host: ${_param:opencontrail_analytics_node03_address}
54 message_queue:
Marek Celoudcba1a442017-06-20 17:14:34 +020055 host: ${_param:opencontrail_message_queue_address}
Svimbaa1b24512018-12-13 10:55:29 +010056 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020057 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020058 - host: ${_param:opencontrail_message_queue_node01_address}
59 - host: ${_param:opencontrail_message_queue_node02_address}
60 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020061 config:
62 members:
63 - host: ${_param:opencontrail_control_node01_address}
64 - host: ${_param:opencontrail_control_node02_address}
65 - host: ${_param:opencontrail_control_node03_address}
66 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010067 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020068 discovery:
69 host: None
70 analytics:
71 members:
72 - host: ${_param:opencontrail_analytics_node01_address}
73 - host: ${_param:opencontrail_analytics_node02_address}
74 - host: ${_param:opencontrail_analytics_node03_address}
Marek Celoudfa1fa512017-11-03 16:07:04 +010075 docker:
76 client:
77 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010078 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +010079 status: up
80 pull: true
81 service:
82 analytics:
83 image: ${_param:opencontrail_analytics_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010084 container_name: ${_param:opencontrail_analytics_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010085 network_mode: "host"
86 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +010087 restart: always
Marek Celoudfa1fa512017-11-03 16:07:04 +010088 volumes:
89 - /etc/contrail:/etc/contrail
90 - /etc/redis/redis.conf:/etc/redis/redis.conf
Svimbad3e59382018-07-03 12:25:19 +020091 - /var/log/contrail:/var/log/contrail
92 - /var/log/journal/contrail-analytics:/var/log/journal
93 env_file:
94 - contrail.env
Marek Celoudfa1fa512017-11-03 16:07:04 +010095 analyticsdb:
96 image: ${_param:opencontrail_analyticsdb_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010097 container_name: ${_param:opencontrail_analyticsdb_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +010098 volumes:
99 - /etc/cassandra/cassandra-env-analytics.sh:/etc/cassandra/cassandra-env.sh
100 - /etc/cassandra/cassandra_analytics.yaml:/etc/cassandra/cassandra.yaml
101 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
102 - /etc/contrail:/etc/contrail
103 - /var/lib/analyticsdb:/var/lib/cassandra
104 - /var/lib/analyticsdb_zookeeper_data:/var/lib/zookeeper
105 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
106 - /usr/share/kafka/config/server.properties:/usr/share/kafka/config/server.properties
107 - /usr/share/kafka/config/consumer.properties:/usr/share/kafka/config/consumer.properties
108 - /usr/share/kafka/config/zookeeper.properties:/usr/share/kafka/config/zookeeper.properties
Petr Jediný12624882017-12-04 17:06:12 +0100109 - /usr/share/kafka/logs:/usr/share/kafka/logs
Marek Celoudfa1fa512017-11-03 16:07:04 +0100110 - /etc/zookeeper/conf/zoo_analytics.cfg:/etc/zookeeper/conf/zoo.cfg
111 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200112 - /var/log/contrail:/var/log/contrail
113 - /var/log/journal/contrail-analyticsdb:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100114 network_mode: "host"
115 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100116 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200117 env_file:
azvyagintsev16ca7ce2018-08-21 17:20:33 +0300118 - contrail.env