blob: acf55300f3a4ba5d989f9be934138cd97c4ef750 [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
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:
Anton Samoylov9298f7d2018-10-23 23:30:41 +040050 role: ${_param:opencontrail_node_role}
Marek Celoudfa1fa512017-11-03 16:07:04 +010051 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020052 analytics:
53 members:
54 - host: ${_param:opencontrail_analytics_node01_address}
55 - host: ${_param:opencontrail_analytics_node02_address}
56 - host: ${_param:opencontrail_analytics_node03_address}
57 message_queue:
58 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020059 - host: ${_param:opencontrail_message_queue_node01_address}
60 - host: ${_param:opencontrail_message_queue_node02_address}
61 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020062 database:
63 members:
64 - host: ${_param:opencontrail_control_node01_address}
65 - host: ${_param:opencontrail_control_node02_address}
66 - host: ${_param:opencontrail_control_node03_address}
67 discovery:
68 host: None
69 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +010070 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020071 analytics:
72 host: ${_param:opencontrail_analytics_address}
73 cache:
74 host: 127.0.0.1
75 identity:
76 host: ${_param:openstack_control_address}
77 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010078 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +020079 network:
80 host: ${_param:openstack_control_address}
81 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010082 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020083 analytics:
84 members:
85 - host: ${_param:opencontrail_analytics_node01_address}
86 - host: ${_param:opencontrail_analytics_node02_address}
87 - host: ${_param:opencontrail_analytics_node03_address}
88 linux:
89 system:
90 kernel:
91 modules:
92 - nf_conntrack_ipv4
Marek Celoudfa1fa512017-11-03 16:07:04 +010093 docker:
94 client:
95 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010096 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +010097 status: up
98 pull: true
99 service:
100 controller:
101 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100102 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100103 volumes:
104 - /etc/contrail:/etc/contrail
105 - /var/lib/configdb:/var/lib/cassandra
106 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
107 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
108 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
109 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
110 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
111 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
112 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200113 - /var/log/contrail:/var/log/contrail
114 - /var/log/journal/contrail-controller:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100115 network_mode: "host"
116 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100117 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200118 env_file:
119 - contrail.env