blob: 8572553fc356ef5d091767f8fc7646f6d9eebff2 [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.keepalived.cluster.single
4- service.opencontrail.control.control
Anton Samoylovb7d48852018-10-11 23:59:56 +04005- system.haproxy.proxy.listen.opencontrail.control4_0
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
Marek Celoudcba1a442017-06-20 17:14:34 +020011 opencontrail_message_queue_node01_address: ${_param:openstack_message_queue_node01_address}
12 opencontrail_message_queue_node02_address: ${_param:openstack_message_queue_node02_address}
13 opencontrail_message_queue_node03_address: ${_param:openstack_message_queue_node03_address}
azvyagintsev16ca7ce2018-08-21 17:20:33 +030014 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 +010015 opencontrail_controller_container_name: opencontrail_controller_1
Svimba483e8092018-09-18 17:39:04 +020016 opencontrail_api_workers_count: 6
Marek Celoudfa1fa512017-11-03 16:07:04 +010017 analytics_vip_address: ${_param:opencontrail_analytics_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020018 opencontrail:
19 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010020 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020021 identity:
22 host: ${_param:openstack_control_address}
23 network:
24 host: ${_param:openstack_control_address}
25 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010026 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020027 network:
28 host: ${_param:openstack_control_address}
29 bind:
30 address: ${_param:cluster_local_address}
31 discovery:
32 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020033 api:
34 host: ${_param:opencontrail_control_address}
Svimba483e8092018-09-18 17:39:04 +020035 workers_count: ${_param:opencontrail_api_workers_count}
Marek Celouda2f29f02017-06-16 14:47:31 +020036 analytics:
37 members:
38 - host: ${_param:opencontrail_analytics_node01_address}
39 - host: ${_param:opencontrail_analytics_node02_address}
40 - host: ${_param:opencontrail_analytics_node03_address}
41 message_queue:
42 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020043 - host: ${_param:opencontrail_message_queue_node01_address}
44 - host: ${_param:opencontrail_message_queue_node02_address}
45 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020046 identity:
47 region: ${_param:openstack_region}
48 host: ${_param:openstack_control_address}
49 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +010050 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020051 analytics:
52 members:
53 - host: ${_param:opencontrail_analytics_node01_address}
54 - host: ${_param:opencontrail_analytics_node02_address}
55 - host: ${_param:opencontrail_analytics_node03_address}
56 message_queue:
57 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 database:
62 members:
63 - host: ${_param:opencontrail_control_node01_address}
64 - host: ${_param:opencontrail_control_node02_address}
65 - host: ${_param:opencontrail_control_node03_address}
66 discovery:
67 host: None
68 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +010069 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020070 analytics:
71 host: ${_param:opencontrail_analytics_address}
72 cache:
73 host: 127.0.0.1
74 identity:
75 host: ${_param:openstack_control_address}
76 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010077 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +020078 network:
79 host: ${_param:openstack_control_address}
80 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010081 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020082 analytics:
83 members:
84 - host: ${_param:opencontrail_analytics_node01_address}
85 - host: ${_param:opencontrail_analytics_node02_address}
86 - host: ${_param:opencontrail_analytics_node03_address}
87 linux:
88 system:
89 kernel:
90 modules:
91 - nf_conntrack_ipv4
Marek Celoudfa1fa512017-11-03 16:07:04 +010092 docker:
93 client:
94 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010095 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +010096 status: up
97 pull: true
98 service:
99 controller:
100 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100101 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100102 volumes:
103 - /etc/contrail:/etc/contrail
104 - /var/lib/configdb:/var/lib/cassandra
105 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
106 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
107 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
108 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
109 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
110 - /etc/zookeeper/conf/zoo.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-controller:/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:
118 - contrail.env