Merge "[docs] Fix build warnings, minor alignments"
[fuel.git] / mcp / reclass / classes / cluster / mcp-common-ha / openstack_control.yml.j2
1 ##############################################################################
2 # Copyright (c) 2018 Mirantis Inc., Enea AB and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 ##############################################################################
8 ---
9 classes:
10   - system.linux.system.repo.mcp.mirror.v1.openstack
11   - system.ceilometer.client
12   - system.memcached.server.single
13   - system.keystone.server.cluster
14   - system.keystone.server.wsgi
15   - system.glance.control.cluster
16   - system.nova.control.cluster
17   - system.cinder.control.cluster
18   - system.cinder.control.backend.lvm
19   - system.heat.server.cluster
20   - system.designate.server.cluster
21   - system.designate.server.backend.bind
22   - system.barbican.server.cluster
23   - system.apache.server.site.barbican
24   - service.barbican.server.plugin.simple_crypto
25   - system.apache.server.single
26   - system.bind.server.single
27   - system.haproxy.proxy.listen.openstack.placement
28   - system.glusterfs.client.cluster
29   - system.glusterfs.client.volume.glance
30   - system.glusterfs.client.volume.keystone
31 {%- if not conf.MCP_VCP %}
32   # sync from kvm
33   - service.keepalived.cluster.single
34   - system.glusterfs.server.volume.glance
35   - system.glusterfs.server.volume.keystone
36   - system.glusterfs.server.cluster
37   # NOTE(armband): Disabled for novcp
38   # - system.salt.control.virt
39   # - system.salt.control.cluster.openstack_control_cluster
40   # - system.salt.control.cluster.openstack_proxy_cluster
41   # - system.salt.control.cluster.openstack_database_cluster
42   # - system.salt.control.cluster.openstack_message_queue_cluster
43   # - system.salt.control.cluster.openstack_telemetry_cluster
44   # - system.salt.control.cluster.stacklight_server_cluster
45   # - system.salt.control.cluster.stacklight_log_cluster
46   # - system.salt.control.cluster.stacklight_telemetry_cluster
47   - cluster.mcp-common-ha.glusterfs_repo
48   - cluster.mcp-common-ha.infra.kvm_pdf
49   - cluster.all-mcp-arch-common.opnfv.maas_proxy
50   - cluster.all-mcp-arch-common.opnfv.lab_proxy_pdf
51 {%- endif %}
52 parameters:
53   _param:
54 {%- if not conf.MCP_VCP %}
55     linux_system_codename: xenial  # sync from kvm
56     # For NOVCP, we switch keepalived VIPs, to keep cluster_vip_address in ctl
57     single_nic: br-ctl  # for keepalive_vip_interface interpolation
58     control_nic: ~      # Dummy value to keep reclass 1.5.2 happy
59     keepalived_openstack_web_public_vip_address: ${_param:openstack_proxy_address}
60     keepalived_openstack_web_public_vip_interface: br-ex
61 {%- endif %}
62     keepalived_vip_interface: ${_param:single_nic}
63     keepalived_vip_virtual_router_id: 50
64     cluster_vip_address: ${_param:openstack_control_address}
65     cluster_local_address: ${_param:single_address}
66     cluster_node01_hostname: ${_param:openstack_control_node01_hostname}
67     cluster_node01_address: ${_param:openstack_control_node01_address}
68     cluster_node02_hostname: ${_param:openstack_control_node02_hostname}
69     cluster_node02_address: ${_param:openstack_control_node02_address}
70     cluster_node03_hostname: ${_param:openstack_control_node03_hostname}
71     cluster_node03_address: ${_param:openstack_control_node03_address}
72     nova_vncproxy_url: https://${_param:cluster_public_host}:6080
73     barbican_integration_enabled: 'false'
74   nova:
75     controller: &db_conn_recycle_time
76       database:
77         connection_recycle_time: ${_param:db_connection_recycle_time}
78       barbican:
79         enabled: ${_param:barbican_integration_enabled}
80   cinder:
81     controller:
82       <<: *db_conn_recycle_time
83   neutron:
84     server:
85       <<: *db_conn_recycle_time
86       vlan_aware_vms: true
87       root_helper_daemon: false
88   keystone:
89     server:
90       <<: *db_conn_recycle_time
91       cacert: /etc/ssl/certs/mcp_os_cacert
92       openrc_extra:
93         volume_device_name: vdc
94   glance:
95     server:
96       <<: *db_conn_recycle_time
97 {%- if conf.MCP_VCP %}
98   heat:
99     server:
100       <<: *db_conn_recycle_time
101       metadata:
102         host: ${_param:openstack_proxy_control_address}
103         port: 8000
104         protocol: http
105       waitcondition:
106         host: ${_param:openstack_proxy_control_address}
107         port: 8000
108         protocol: http
109       watch:
110         host: ${_param:openstack_proxy_control_address}
111         port: 8003
112         protocol: http
113 {%- else %}
114   libvirt:
115     server:
116       service: libvirtd
117       config_sys: /etc/default/libvirtd
118       unix_sock_group: libvirt
119   linux:
120     network:
121       # Add public IPs here as overrides, no need to fork another kvm_pdf.j2
122       interface:
123         br-ex:
124           address: ${_param:external_address}
125           proto: static
126   apache:
127     server:
128       bind:
129         listen_default_ports: false
130   # sync from common-ha kvm role
131   glusterfs:
132     server:
133       service: glusterd
134       volumes:
135         nova_instances:
136           storage: /srv/glusterfs/nova_instances
137           replica: 3
138           bricks:
139             - ${_param:cluster_node01_address}:/srv/glusterfs/nova_instances
140             - ${_param:cluster_node02_address}:/srv/glusterfs/nova_instances
141             - ${_param:cluster_node03_address}:/srv/glusterfs/nova_instances
142           options:
143             cluster.readdir-optimize: 'True'
144             nfs.disable: 'True'
145             network.remote-dio: 'True'
146             cluster.favorite-child-policy: mtime
147             diagnostics.client-log-level: WARNING
148             diagnostics.brick-log-level: WARNING
149 {%- endif %}
150   haproxy:
151     proxy:
152       listen:
153         heat_cloudwatch_api:
154           enabled: false
155   barbican:
156     server:
157       ks_notifications_enable: true
158       store:
159         software:
160           crypto_plugin: simple_crypto
161           store_plugin: store_crypto
162           global_default: true
163       database:
164         connection_recycle_time: ${_param:db_connection_recycle_time}
165         host: ${_param:openstack_database_address}
166   bind:
167     server:
168       control:
169         mgmt:
170           enabled: true
171           bind:
172             address: ${_param:single_address}
173             port: 953
174           allow:
175             - ${_param:openstack_control_node01_address}
176             - ${_param:openstack_control_node02_address}
177             - ${_param:openstack_control_node03_address}
178           keys:
179             - designate
180   designate:
181     _support:
182       sphinx:
183         enabled: False  # Workaround broken meta/sphinx.yml in salt-formula-designate
184     server:
185       pools:
186         default:
187           description: 'test pool'
188           targets:
189             default:
190               description: 'test target1'
191             default1:
192               type: ${_param:designate_pool_target_type}
193               description: 'test target2'
194               masters: ${_param:designate_pool_target_masters}
195               options:
196                 host: ${_param:openstack_control_node02_address}
197                 port: 53
198                 rndc_host: ${_param:openstack_control_node02_address}
199                 rndc_port: 953
200                 rndc_key_file: /etc/designate/rndc.key
201             default2:
202               type: ${_param:designate_pool_target_type}
203               description: 'test target3'
204               masters: ${_param:designate_pool_target_masters}
205               options:
206                 host: ${_param:openstack_control_node03_address}
207                 port: 53
208                 rndc_host: ${_param:openstack_control_node03_address}
209                 rndc_port: 953
210                 rndc_key_file: /etc/designate/rndc.key