Merge changes from topics 'baremetal-noha', 'move-maas-classes'
[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   - service.barbican.client.single
20   - cluster.mcp-common-noha.openstack_compute_pdf
21 parameters:
22   _param:
23     interface_mtu: 9000
24     linux_system_codename: xenial
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       barbican:
39         enabled: ${_param:barbican_integration_enabled}
40   neutron:
41     compute:
42       notification: true
43       vlan_aware_vms: true
44       root_helper_daemon: false
45       agent_mode: ${_param:neutron_compute_agent_mode}
46       message_queue:
47         host: ${_param:openstack_control_address}
48       metadata:
49         host: ${_param:openstack_control_address}
50   cinder:
51     volume:
52       backend:
53         lvm-driver:
54           # Align system.cinder.volume.backend.lvm and MaaS data
55           volume_group: ${linux:storage:lvm:cinder-vg:name}
56       my_ip: ${_param:single_address}
57       database:
58         host: ${_param:cluster_local_address}
59       identity:
60         host: ${_param:cluster_local_address}
61       glance:
62         host: ${_param:cluster_local_address}
63       message_queue:
64         host: ${_param:cluster_local_address}
65       barbican:
66         enabled: ${_param:barbican_integration_enabled}
67   nfs:
68     client:
69       mount:
70         nfs:
71           path: /var/lib/nova/instances
72           fstype: nfs
73           device: ${_param:openstack_control_address}:/srv/nova/instances
74   linux:
75     storage:
76       lvm:
77         # Align with both system.cinder.volume.backend.lvm and MaaS data
78         cinder-vg:
79           name: vgroot
80     system:
81       kernel:
82         sysctl:
83           vm.dirty_ratio: 10
84           vm.dirty_background_ratio: 5