[noHA] Add dedicated cinder volume for virtual cmp
[fuel.git] / mcp / reclass / classes / cluster / mcp-pike-common-noha / 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   - service.nfs.client
11   - system.nova.compute.single
12   - service.cinder.volume.single
13   - system.cinder.volume.backend.lvm
14   - system.ceilometer.agent.cluster
15   - system.ceilometer.client.nova_compute
16   - system.ceilometer.client.cinder_volume
17   - cluster.mcp-pike-common-noha.openstack_compute_pdf
18 parameters:
19   _param:
20     interface_mtu: 9000
21     linux_system_codename: xenial
22     ~cinder_lvm_devices: ['/dev/vdb']
23   nova:
24     compute:
25       libvirt_service: libvirtd
26       libvirt_bin: /etc/default/libvirtd
27       disk_cachemodes: file=directsync,block=none
28       vncproxy_url: http://${_param:cluster_vip_address}:6080
29       network:
30         region: ${_param:openstack_region}
31         user: neutron
32         tenant: service
33         password: ${_param:keystone_neutron_password}
34   neutron:
35     compute:
36       notification: true
37       vlan_aware_vms: true
38       agent_mode: ${_param:neutron_compute_agent_mode}
39       message_queue:
40         host: ${_param:openstack_control_address}
41       metadata:
42         host: ${_param:openstack_control_address}
43   cinder:
44     volume:
45       database:
46         host: ${_param:cluster_local_address}
47       identity:
48         host: ${_param:cluster_local_address}
49       glance:
50         host: ${_param:cluster_local_address}
51       message_queue:
52         host: ${_param:cluster_local_address}
53   nfs:
54     client:
55       mount:
56         nfs:
57           path: /var/lib/nova/instances
58           fstype: nfs
59           device: ${_param:openstack_control_address}:/srv/nova/instances
60   linux:
61     system:
62       kernel:
63         sysctl:
64           vm.dirty_ratio: 10
65           vm.dirty_background_ratio: 5