90cbb87bb0f4fd13cacc1bf6e51567a56b9b4bd5
[fuel.git] / mcp / reclass / classes / cluster / mcp-common-ha / openstack_compute.yml
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.glusterfs
11   - system.glusterfs.client.cluster
12   - system.nova.compute.cluster
13   - system.nova.compute.nfv.hugepages
14   - system.neutron.gateway.cluster
15   - system.cinder.volume.single
16   - system.cinder.volume.backend.lvm
17   - system.ceilometer.agent.cluster
18   - system.ceilometer.agent.polling.default
19   - cluster.mcp-common-ha.openstack_compute_pdf
20   - cluster.mcp-common-ha.include.maas_proxy
21   - cluster.mcp-common-ha.include.lab_proxy_pdf
22 parameters:
23   _param:
24     cluster_vip_address: ${_param:openstack_control_address}
25     cluster_local_address: ${_param:control_address}
26     cluster_node01_hostname: ${_param:openstack_control_node01_hostname}
27     cluster_node01_address: ${_param:openstack_control_node01_address}
28     cluster_node02_hostname: ${_param:openstack_control_node02_hostname}
29     cluster_node02_address: ${_param:openstack_control_node02_address}
30     cluster_node03_hostname: ${_param:openstack_control_node03_hostname}
31     cluster_node03_address: ${_param:openstack_control_node03_address}
32     nova_vncproxy_url: https://${_param:cluster_public_host}:6080
33     interface_mtu: 1500
34     keepalived_vip_interface: br-ctl
35     keepalived_vip_virtual_router_id: 69
36     linux_system_codename: xenial
37     single_address: ${_param:control_address}
38     glusterfs_version: '3.13'
39   glusterfs:
40     client:
41       volumes:
42         nova_instances:
43           path: /var/lib/nova/instances
44           server: ${_param:glusterfs_service_host}
45           # yamllint disable-line rule:line-length
46           opts: "defaults,backup-volfile-servers=${_param:cluster_node01_address}:${_param:cluster_node02_address}:${_param:cluster_node03_address}"
47   cinder:
48     volume:
49       backend:
50         lvm-driver:
51           # Align system.cinder.volume.backend.lvm and MaaS data
52           volume_group: ${linux:storage:lvm:cinder-vg:name}
53       database:
54         connection_recycle_time: ${_param:db_connection_recycle_time}
55   linux:
56     storage:
57       lvm:
58         # Align with both system.cinder.volume.backend.lvm and MaaS data
59         cinder-vg:
60           name: vgroot
61     system:
62       kernel:
63         sysctl:
64           vm.dirty_ratio: 10
65           vm.dirty_background_ratio: 5
66         boot_options:
67           - spectre_v2=off
68           - nopti
69   neutron:
70     gateway:
71       vlan_aware_vms: true
72       root_helper_daemon: false
73   nova:
74     compute:
75       disk_cachemodes: file=directsync,block=none
76       preallocate_images: space