blob: 67c91e2c4b59baf1fca2cd8e883f415ed20cd62f [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}
Anton Samoylovf05f9a82019-03-28 16:38:41 +040016 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 +010017 opencontrail_controller_container_name: opencontrail_controller_1
Sergey Kreys893f09b2019-02-14 12:38:18 +000018 opencontrail_api_workers_count: 6
Marek Celoudfa1fa512017-11-03 16:07:04 +010019 analytics_vip_address: ${_param:opencontrail_analytics_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020020 opencontrail:
21 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010022 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020023 identity:
24 host: ${_param:openstack_control_address}
25 network:
26 host: ${_param:openstack_control_address}
27 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010028 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020029 network:
30 host: ${_param:openstack_control_address}
31 bind:
32 address: ${_param:cluster_local_address}
33 discovery:
34 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020035 api:
36 host: ${_param:opencontrail_control_address}
Svimba483e8092018-09-18 17:39:04 +020037 workers_count: ${_param:opencontrail_api_workers_count}
Marek Celouda2f29f02017-06-16 14:47:31 +020038 analytics:
39 members:
40 - host: ${_param:opencontrail_analytics_node01_address}
41 - host: ${_param:opencontrail_analytics_node02_address}
42 - host: ${_param:opencontrail_analytics_node03_address}
43 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +010044 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020045 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020046 - host: ${_param:opencontrail_message_queue_node01_address}
47 - host: ${_param:opencontrail_message_queue_node02_address}
48 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020049 identity:
50 region: ${_param:openstack_region}
51 host: ${_param:openstack_control_address}
52 control:
Anton Samoylov9298f7d2018-10-23 23:30:41 +040053 role: ${_param:opencontrail_node_role}
Marek Celoudfa1fa512017-11-03 16:07:04 +010054 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020055 analytics:
56 members:
57 - host: ${_param:opencontrail_analytics_node01_address}
58 - host: ${_param:opencontrail_analytics_node02_address}
59 - host: ${_param:opencontrail_analytics_node03_address}
60 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +010061 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020062 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020063 - host: ${_param:opencontrail_message_queue_node01_address}
64 - host: ${_param:opencontrail_message_queue_node02_address}
65 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020066 database:
67 members:
68 - host: ${_param:opencontrail_control_node01_address}
69 - host: ${_param:opencontrail_control_node02_address}
70 - host: ${_param:opencontrail_control_node03_address}
71 discovery:
72 host: None
73 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +010074 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020075 analytics:
76 host: ${_param:opencontrail_analytics_address}
77 cache:
78 host: 127.0.0.1
79 identity:
80 host: ${_param:openstack_control_address}
81 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010082 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +020083 network:
84 host: ${_param:openstack_control_address}
85 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010086 config_only: true
Inessa Vasilevskayadca068d2018-11-19 15:26:56 +010087 configdb_log_dir: ${_param:opencontrail_host_configdb_log_dir}
Marek Celouda2f29f02017-06-16 14:47:31 +020088 analytics:
89 members:
90 - host: ${_param:opencontrail_analytics_node01_address}
91 - host: ${_param:opencontrail_analytics_node02_address}
92 - host: ${_param:opencontrail_analytics_node03_address}
93 linux:
94 system:
95 kernel:
96 modules:
97 - nf_conntrack_ipv4
Marek Celoudfa1fa512017-11-03 16:07:04 +010098 docker:
99 client:
100 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100101 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100102 status: up
103 pull: true
104 service:
105 controller:
106 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100107 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100108 volumes:
109 - /etc/contrail:/etc/contrail
Inessa Vasilevskaya88337442018-12-27 13:21:28 +0100110 - /etc/redis/redis_webui.conf:/etc/redis/redis.conf
Marek Celoudfa1fa512017-11-03 16:07:04 +0100111 - /var/lib/configdb:/var/lib/cassandra
112 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
113 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
114 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
115 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
116 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
117 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
118 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200119 - /var/log/contrail:/var/log/contrail
120 - /var/log/journal/contrail-controller:/var/log/journal
Inessa Vasilevskayadca068d2018-11-19 15:26:56 +0100121 - ${_param:opencontrail_host_configdb_log_dir}/cassandra:${_param:opencontrail_cassandra_log_dir}
122 - ${_param:opencontrail_host_configdb_log_dir}/zookeeper:${_param:opencontrail_zookeeper_log_dir}
Anton Samoylov5d5a1ca2019-06-19 15:02:31 +0400123 - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro
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