Merge "[VCP] Reboot all VCP VMs after network config"
[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     linux_system_codename: xenial
24   nova:
25     compute:
26       libvirt_service: libvirtd
27       libvirt_bin: /etc/default/libvirtd
28       disk_cachemodes: file=directsync,block=none
29       vncproxy_url: http://${_param:cluster_vip_address}:6080
30       bind:
31         vnc_address: ${_param:single_address}
32       network:
33         region: ${_param:openstack_region}
34         user: neutron
35         tenant: service
36         password: ${_param:keystone_neutron_password}
37       barbican:
38         enabled: ${_param:barbican_integration_enabled}
39       image:
40         verify_glance_signatures: false
41   neutron:
42     compute:
43       notification: true
44       vlan_aware_vms: true
45       root_helper_daemon: false
46       agent_mode: ${_param:neutron_compute_agent_mode}
47       message_queue:
48         host: ${_param:openstack_control_address}
49       metadata:
50         host: ${_param:openstack_control_address}
51   cinder:
52     volume:
53       backend:
54         lvm-driver:
55           # Align system.cinder.volume.backend.lvm and MaaS data
56           volume_group: ${linux:storage:lvm:cinder-vg:name}
57       my_ip: ${_param:single_address}
58       database:
59         host: ${_param:cluster_local_address}
60       identity:
61         host: ${_param:cluster_local_address}
62       glance:
63         host: ${_param:cluster_local_address}
64       message_queue:
65         host: ${_param:cluster_local_address}
66       barbican:
67         enabled: ${_param:barbican_integration_enabled}
68   nfs:
69     client:
70       mount:
71         nfs:
72           path: /var/lib/nova/instances
73           fstype: nfs
74           device: ${_param:openstack_control_address}:/srv/nova/instances
75   linux:
76     storage:
77       lvm:
78         # Align with both system.cinder.volume.backend.lvm and MaaS data
79         cinder-vg:
80           name: vgroot
81     system:
82       kernel:
83         sysctl:
84           vm.dirty_ratio: 10
85           vm.dirty_background_ratio: 5