blob: 207e9da6a6e8ac1f2c8e97de87c16bdccc2a78af [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
5- system.haproxy.proxy.listen.opencontrail.control
6parameters:
7 _param:
azvyagintsev16ca7ce2018-08-21 17:20:33 +03008 mcp_docker_registry: 'docker-prod-local.artifactory.mirantis.com'
Marek Celouda2f29f02017-06-16 14:47:31 +02009 opencontrail_version: 4.0
10 linux_repo_contrail_component: oc40
Petr Jedinýeb7fceb2018-06-21 19:17:27 +020011 opencontrail_image_tag: latest
Marek Celoudcba1a442017-06-20 17:14:34 +020012 opencontrail_message_queue_node01_address: ${_param:openstack_message_queue_node01_address}
13 opencontrail_message_queue_node02_address: ${_param:openstack_message_queue_node02_address}
14 opencontrail_message_queue_node03_address: ${_param:openstack_message_queue_node03_address}
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
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}
Marek Celouda2f29f02017-06-16 14:47:31 +020035 analytics:
36 members:
37 - host: ${_param:opencontrail_analytics_node01_address}
38 - host: ${_param:opencontrail_analytics_node02_address}
39 - host: ${_param:opencontrail_analytics_node03_address}
40 message_queue:
41 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020042 - host: ${_param:opencontrail_message_queue_node01_address}
43 - host: ${_param:opencontrail_message_queue_node02_address}
44 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020045 identity:
46 region: ${_param:openstack_region}
47 host: ${_param:openstack_control_address}
48 control:
Marek Celoudfa1fa512017-11-03 16:07:04 +010049 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020050 analytics:
51 members:
52 - host: ${_param:opencontrail_analytics_node01_address}
53 - host: ${_param:opencontrail_analytics_node02_address}
54 - host: ${_param:opencontrail_analytics_node03_address}
55 message_queue:
56 members:
Marek Celoudcba1a442017-06-20 17:14:34 +020057 - host: ${_param:opencontrail_message_queue_node01_address}
58 - host: ${_param:opencontrail_message_queue_node02_address}
59 - host: ${_param:opencontrail_message_queue_node03_address}
Marek Celouda2f29f02017-06-16 14:47:31 +020060 database:
61 members:
62 - host: ${_param:opencontrail_control_node01_address}
63 - host: ${_param:opencontrail_control_node02_address}
64 - host: ${_param:opencontrail_control_node03_address}
65 discovery:
66 host: None
67 web:
Marek Celoudfa1fa512017-11-03 16:07:04 +010068 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020069 analytics:
70 host: ${_param:opencontrail_analytics_address}
71 cache:
72 host: 127.0.0.1
73 identity:
74 host: ${_param:openstack_control_address}
75 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010076 port: 9041
Marek Celouda2f29f02017-06-16 14:47:31 +020077 network:
78 host: ${_param:openstack_control_address}
79 database:
Marek Celoudfa1fa512017-11-03 16:07:04 +010080 config_only: true
Marek Celouda2f29f02017-06-16 14:47:31 +020081 analytics:
82 members:
83 - host: ${_param:opencontrail_analytics_node01_address}
84 - host: ${_param:opencontrail_analytics_node02_address}
85 - host: ${_param:opencontrail_analytics_node03_address}
86 linux:
87 system:
88 kernel:
89 modules:
90 - nf_conntrack_ipv4
Marek Celoudfa1fa512017-11-03 16:07:04 +010091 docker:
92 client:
93 compose:
Pavel Svimbersky38f216c2017-12-20 10:46:35 +010094 opencontrail:
Marek Celoudfa1fa512017-11-03 16:07:04 +010095 status: up
96 pull: true
97 service:
98 controller:
99 image: ${_param:opencontrail_controller_image}
Pavel Svimbersky38f216c2017-12-20 10:46:35 +0100100 container_name: ${_param:opencontrail_controller_container_name}
Marek Celoudfa1fa512017-11-03 16:07:04 +0100101 volumes:
102 - /etc/contrail:/etc/contrail
103 - /var/lib/configdb:/var/lib/cassandra
104 - /var/lib/config_zookeeper_data:/var/lib/zookeeper
105 - /var/lib/zookeeper/myid:/var/lib/zookeeper/myid
106 - /etc/cassandra/cassandra-env.sh:/etc/cassandra/cassandra-env.sh
107 - /etc/cassandra/cassandra.yaml:/etc/cassandra/cassandra.yaml
108 - /etc/cassandra/logback.xml:/etc/cassandra/logback.xml
109 - /etc/zookeeper/conf/zoo.cfg:/etc/zookeeper/conf/zoo.cfg
110 - /etc/zookeeper/conf/log4j.properties:/etc/zookeeper/conf/log4j.properties
Svimbad3e59382018-07-03 12:25:19 +0200111 - /var/log/contrail:/var/log/contrail
112 - /var/log/journal/contrail-controller:/var/log/journal
Marek Celoudfa1fa512017-11-03 16:07:04 +0100113 network_mode: "host"
114 privileged: true
psvimberskya5463c92018-01-02 14:10:54 +0100115 restart: always
Svimbad3e59382018-07-03 12:25:19 +0200116 env_file:
117 - contrail.env