blob: fb751ca4143fdeaca84d87a89d253760e234c72d [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
Petr Jedinýeb7fceb2018-06-21 19:17:27 +020010 opencontrail_image_tag: latest
Inessa Vasilevskayadca068d2018-11-19 15:26:56 +010011 opencontrail_host_configdb_log_dir: '/var/log/configdb'
12 opencontrail_cassandra_log_dir: '/var/log/cassandra'
13 opencontrail_zookeeper_log_dir: '/var/log/zookeeper'
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}
Svimbaa1b24512018-12-13 10:55:29 +010017 opencontrail_message_queue_password: guest
azvyagintsev16ca7ce2018-08-21 17:20:33 +030018 opencontrail_controller_image: ${_param:mcp_docker_registry}/opencontrail-${_param:linux_repo_contrail_component}/opencontrail-controller:${_param:opencontrail_image_tag}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010019 opencontrail_controller_container_name: opencontrail_controller_1
Anton Samoylov5ae64062019-01-30 12:14:48 +040020 opencontrail_api_workers_count: 1
Marek Celoudfa1fa512017-11-03 16:07:04 +010021 analytics_vip_address: ${_param:opencontrail_analytics_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020022 opencontrail:
23 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010024 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020025 identity:
26 host: ${_param:openstack_control_address}
27 network:
28 host: ${_param:openstack_control_address}
29 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010030 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020031 network:
32 host: ${_param:openstack_control_address}
33 bind:
34 address: ${_param:cluster_local_address}
35 discovery:
36 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020037 api:
38 host: ${_param:opencontrail_control_address}
Svimba483e8092018-09-18 17:39:04 +020039 workers_count: ${_param:opencontrail_api_workers_count}
Marek Celouda2f29f02017-06-16 14:47:31 +020040 analytics:
41 members:
42 - host: ${_param:opencontrail_analytics_node01_address}
43 - host: ${_param:opencontrail_analytics_node02_address}
44 - host: ${_param:opencontrail_analytics_node03_address}
45 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +010046 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020047 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020048 - host: ${_param:opencontrail_message_queue_node01_address}
49 - host: ${_param:opencontrail_message_queue_node02_address}
50 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020051 identity:
52 region: ${_param:openstack_region}
53 host: ${_param:openstack_control_address}
54 control:
Anton Samoylov9298f7d2018-10-23 23:30:41 +040055 role: ${_param:opencontrail_node_role}
Marek Celoudfa1fa512017-11-03 16:07:04 +010056 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020057 analytics:
58 members:
59 - host: ${_param:opencontrail_analytics_node01_address}
60 - host: ${_param:opencontrail_analytics_node02_address}
61 - host: ${_param:opencontrail_analytics_node03_address}
62 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +010063 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020064 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020065 - host: ${_param:opencontrail_message_queue_node01_address}
66 - host: ${_param:opencontrail_message_queue_node02_address}
67 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020068 database:
69 members:
70 - host: ${_param:opencontrail_control_node01_address}
71 - host: ${_param:opencontrail_control_node02_address}
72 - host: ${_param:opencontrail_control_node03_address}
73 discovery:
74 host: None
75 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +010076 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020077 analytics:
78 host: ${_param:opencontrail_analytics_address}
79 cache:
80 host: 127.0.0.1
81 identity:
82 host: ${_param:openstack_control_address}
83 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010084 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +020085 network:
86 host: ${_param:openstack_control_address}
87 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010088 config_only: true
Inessa Vasilevskayadca068d2018-11-19 15:26:56 +010089 configdb_log_dir: ${_param:opencontrail_host_configdb_log_dir}
Marek Celouda2f29f02017-06-16 14:47:31 +020090 analytics:
91 members:
92 - host: ${_param:opencontrail_analytics_node01_address}
93 - host: ${_param:opencontrail_analytics_node02_address}
94 - host: ${_param:opencontrail_analytics_node03_address}
95 linux:
96 system:
97 kernel:
98 modules:
99 - nf_conntrack_ipv4
Marek Celoudfa1fa512017-11-03 16:07:04 +0100100 docker:
101 client:
102 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100103 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100104 status: up
105 pull: true
106 service:
107 controller:
108 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100109 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100110 volumes:
111 - /etc/contrail:/etc/contrail
Inessa Vasilevskaya88337442018-12-27 13:21:28 +0100112 - /etc/redis/redis_webui.conf:/etc/redis/redis.conf
Marek Celoudfa1fa512017-11-03 16:07:04 +0100113 - /var/lib/configdb:/var/lib/cassandra
114 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
115 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
116 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
117 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
118 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
119 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
120 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200121 - /var/log/contrail:/var/log/contrail
122 - /var/log/journal/contrail-controller:/var/log/journal
Inessa Vasilevskayadca068d2018-11-19 15:26:56 +0100123 - ${_param:opencontrail_host_configdb_log_dir}/cassandra:${_param:opencontrail_cassandra_log_dir}
124 - ${_param:opencontrail_host_configdb_log_dir}/zookeeper:${_param:opencontrail_zookeeper_log_dir}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100125 network_mode: "host"
126 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100127 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200128 env_file:
129 - contrail.env