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