Merge "[baremetal] cleanup: Parameterize VCP hostnames"
[fuel.git] / mcp / reclass / classes / cluster / baremetal-mcp-pike-common-ha / openstack_compute.yml
1 ##############################################################################
2 # Copyright (c) 2017 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.storage.loopback
11   - system.glusterfs.client.cluster
12   - system.nova.compute.cluster
13   - system.nova.compute.nfv.hugepages
14   - system.nova.compute.nfv.cpu_pinning
15   - system.neutron.gateway.cluster
16   - system.cinder.volume.single
17   - system.cinder.volume.backend.lvm
18   - system.ceilometer.agent.cluster
19   - cluster.baremetal-mcp-pike-common-ha.openstack_compute_pdf
20 parameters:
21   _param:
22     cluster_vip_address: ${_param:openstack_control_address}
23     cluster_local_address: ${_param:control_address}
24     cluster_node01_hostname: ${_param:openstack_control_node01_hostname}
25     cluster_node01_address: ${_param:openstack_control_node01_address}
26     cluster_node02_hostname: ${_param:openstack_control_node02_hostname}
27     cluster_node02_address: ${_param:openstack_control_node02_address}
28     cluster_node03_hostname: ${_param:openstack_control_node03_hostname}
29     cluster_node03_address: ${_param:openstack_control_node03_address}
30     nova_vncproxy_url: https://${_param:cluster_public_host}:6080
31     interface_mtu: 1500
32     keepalived_vip_interface: br-ctl
33     keepalived_vip_virtual_router_id: 69
34     loopback_device_size: 20
35     linux_system_codename: xenial
36     # {dhcp,single}_nic are not used, but referenced
37     dhcp_nic: ${_param:opnfv_vcp_vm_primary_interface}
38     single_nic: ${_param:opnfv_vcp_vm_secondary_interface}
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   linux:
48     network:
49       remove_iface_files:
50         - '/etc/network/interfaces.d/50-cloud-init.cfg'
51     system:
52       kernel:
53         sysctl:
54           vm.dirty_ratio: 10
55           vm.dirty_background_ratio: 5
56   neutron:
57     gateway:
58       vlan_aware_vms: true