blob: 716088cc2a52a41f1b25cdb56f59fb0cc4953761 [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}
Svimbaa1b24512018-12-13 10:55:29 +010014 opencontrail_message_queue_password: guest
azvyagintsev16ca7ce2018-08-21 17:20:33 +030015 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 +010016 opencontrail_controller_container_name: opencontrail_controller_1
Svimba483e8092018-09-18 17:39:04 +020017 opencontrail_api_workers_count: 6
Marek Celoudfa1fa512017-11-03 16:07:04 +010018 analytics_vip_address: ${_param:opencontrail_analytics_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020019 opencontrail:
20 common:
Marek Celoudfa1fa512017-11-03 16:07:04 +010021 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020022 identity:
23 host: ${_param:openstack_control_address}
24 network:
25 host: ${_param:openstack_control_address}
26 config:
Marek Celoudfa1fa512017-11-03 16:07:04 +010027 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020028 network:
29 host: ${_param:openstack_control_address}
30 bind:
31 address: ${_param:cluster_local_address}
32 discovery:
33 host: None
Marek Celoudcba1a442017-06-20 17:14:34 +020034 api:
35 host: ${_param:opencontrail_control_address}
Svimba483e8092018-09-18 17:39:04 +020036 workers_count: ${_param:opencontrail_api_workers_count}
Marek Celouda2f29f02017-06-16 14:47:31 +020037 analytics:
38 members:
39 - host: ${_param:opencontrail_analytics_node01_address}
40 - host: ${_param:opencontrail_analytics_node02_address}
41 - host: ${_param:opencontrail_analytics_node03_address}
42 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +010043 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020044 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020045 - host: ${_param:opencontrail_message_queue_node01_address}
46 - host: ${_param:opencontrail_message_queue_node02_address}
47 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020048 identity:
49 region: ${_param:openstack_region}
50 host: ${_param:openstack_control_address}
51 control:
Anton Samoylov9298f7d2018-10-23 23:30:41 +040052 role: ${_param:opencontrail_node_role}
Marek Celoudfa1fa512017-11-03 16:07:04 +010053 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020054 analytics:
55 members:
56 - host: ${_param:opencontrail_analytics_node01_address}
57 - host: ${_param:opencontrail_analytics_node02_address}
58 - host: ${_param:opencontrail_analytics_node03_address}
59 message_queue:
Svimbaa1b24512018-12-13 10:55:29 +010060 password: ${_param:opencontrail_message_queue_password}
Marek Celouda2f29f02017-06-16 14:47:31 +020061 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020062 - host: ${_param:opencontrail_message_queue_node01_address}
63 - host: ${_param:opencontrail_message_queue_node02_address}
64 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020065 database:
66 members:
67 - host: ${_param:opencontrail_control_node01_address}
68 - host: ${_param:opencontrail_control_node02_address}
69 - host: ${_param:opencontrail_control_node03_address}
70 discovery:
71 host: None
72 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +010073 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020074 analytics:
75 host: ${_param:opencontrail_analytics_address}
76 cache:
77 host: 127.0.0.1
78 identity:
79 host: ${_param:openstack_control_address}
80 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010081 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +020082 network:
83 host: ${_param:openstack_control_address}
84 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010085 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020086 analytics:
87 members:
88 - host: ${_param:opencontrail_analytics_node01_address}
89 - host: ${_param:opencontrail_analytics_node02_address}
90 - host: ${_param:opencontrail_analytics_node03_address}
91 linux:
92 system:
93 kernel:
94 modules:
95 - nf_conntrack_ipv4
Marek Celoudfa1fa512017-11-03 16:07:04 +010096 docker:
97 client:
98 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010099 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +0100100 status: up
101 pull: true
102 service:
103 controller:
104 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100105 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100106 volumes:
107 - /etc/contrail:/etc/contrail
108 - /var/lib/configdb:/var/lib/cassandra
109 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
110 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
111 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
112 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
113 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
114 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
115 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200116 - /var/log/contrail:/var/log/contrail
117 - /var/log/journal/contrail-controller:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100118 network_mode: "host"
119 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100120 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200121 env_file:
122 - contrail.env