blob: fe63ec14afb754d7a1513da38365768e2f97e610 [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.opencontrail.control.control
Anton Samoylovb7d48852018-10-11 23:59:56 +04004- system.haproxy.proxy.listen.opencontrail.control4_0
Denis Egorenkofae10612018-11-29 15:43:35 +04005- system.keepalived.cluster.instance.opencontrail_vip
Marek Celouda2f29f02017-06-16 14:47:31 +02006parameters:
7 _param:
8 opencontrail_version: 4.0
9 linux_repo_contrail_component: oc40
Inessa Vasilevskayadca068d2018-11-19 15:26:56 +010010 opencontrail_host_configdb_log_dir: '/var/log/configdb'
11 opencontrail_cassandra_log_dir: '/var/log/cassandra'
12 opencontrail_zookeeper_log_dir: '/var/log/zookeeper'
Marek Celoudcba1a442017-06-20 17:14:34 +020013 opencontrail_message_queue_node01_address: ${_param:openstack_message_queue_node01_address}
14 opencontrail_message_queue_node02_address: ${_param:openstack_message_queue_node02_address}
15 opencontrail_message_queue_node03_address: ${_param:openstack_message_queue_node03_address}
Svimbaa1b24512018-12-13 10:55:29 +010016 opencontrail_message_queue_password: guest
Anton Samoylovf05f9a82019-03-28 16:38:41 +040017 opencontrail_controller_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-controller:${_param:opencontrail_docker_image_tag}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010018 opencontrail_controller_container_name: opencontrail_controller_1
Sergey Kreys893f09b2019-02-14 12:38:18 +000019 opencontrail_api_workers_count: 6
Marek Celoudfa1fa512017-11-03 16:07:04 +010020 analytics_vip_address: ${_param:opencontrail_analytics_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020021 opencontrail:
22 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010023 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020024 identity:
25 host: ${_param:openstack_control_address}
26 network:
27 host: ${_param:openstack_control_address}
28 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010029 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020030 network:
31 host: ${_param:openstack_control_address}
32 bind:
33 address: ${_param:cluster_local_address}
34 discovery:
35 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020036 api:
37 host: ${_param:opencontrail_control_address}
Svimba483e8092018-09-18 17:39:04 +020038 workers_count: ${_param:opencontrail_api_workers_count}
Marek Celouda2f29f02017-06-16 14:47:31 +020039 analytics:
40 members:
41 - host: ${_param:opencontrail_analytics_node01_address}
42 - host: ${_param:opencontrail_analytics_node02_address}
43 - host: ${_param:opencontrail_analytics_node03_address}
44 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +010045 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020046 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020047 - host: ${_param:opencontrail_message_queue_node01_address}
48 - host: ${_param:opencontrail_message_queue_node02_address}
49 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020050 identity:
51 region: ${_param:openstack_region}
52 host: ${_param:openstack_control_address}
53 control:
Anton Samoylov9298f7d2018-10-23 23:30:41 +040054 role: ${_param:opencontrail_node_role}
Marek Celoudfa1fa512017-11-03 16:07:04 +010055 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020056 analytics:
57 members:
58 - host: ${_param:opencontrail_analytics_node01_address}
59 - host: ${_param:opencontrail_analytics_node02_address}
60 - host: ${_param:opencontrail_analytics_node03_address}
61 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +010062 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020063 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020064 - host: ${_param:opencontrail_message_queue_node01_address}
65 - host: ${_param:opencontrail_message_queue_node02_address}
66 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020067 database:
68 members:
69 - host: ${_param:opencontrail_control_node01_address}
70 - host: ${_param:opencontrail_control_node02_address}
71 - host: ${_param:opencontrail_control_node03_address}
72 discovery:
73 host: None
74 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +010075 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020076 analytics:
77 host: ${_param:opencontrail_analytics_address}
78 cache:
79 host: 127.0.0.1
80 identity:
81 host: ${_param:openstack_control_address}
82 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010083 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +020084 network:
85 host: ${_param:openstack_control_address}
86 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010087 config_only: true
Inessa Vasilevskayadca068d2018-11-19 15:26:56 +010088 configdb_log_dir: ${_param:opencontrail_host_configdb_log_dir}
Marek Celouda2f29f02017-06-16 14:47:31 +020089 analytics:
90 members:
91 - host: ${_param:opencontrail_analytics_node01_address}
92 - host: ${_param:opencontrail_analytics_node02_address}
93 - host: ${_param:opencontrail_analytics_node03_address}
94 linux:
95 system:
96 kernel:
97 modules:
98 - nf_conntrack_ipv4
Marek Celoudfa1fa512017-11-03 16:07:04 +010099 docker:
100 client:
101 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100102 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100103 status: up
104 pull: true
105 service:
106 controller:
107 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100108 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100109 volumes:
110 - /etc/contrail:/etc/contrail
Inessa Vasilevskaya88337442018-12-27 13:21:28 +0100111 - /etc/redis/redis_webui.conf:/etc/redis/redis.conf
Marek Celoudfa1fa512017-11-03 16:07:04 +0100112 - /var/lib/configdb:/var/lib/cassandra
113 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
114 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
115 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
116 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
117 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
118 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
119 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200120 - /var/log/contrail:/var/log/contrail
121 - /var/log/journal/contrail-controller:/var/log/journal
Inessa Vasilevskayadca068d2018-11-19 15:26:56 +0100122 - ${_param:opencontrail_host_configdb_log_dir}/cassandra:${_param:opencontrail_cassandra_log_dir}
123 - ${_param:opencontrail_host_configdb_log_dir}/zookeeper:${_param:opencontrail_zookeeper_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100124 network_mode: "host"
125 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100126 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200127 env_file:
128 - contrail.env