2375ef54e85bfeaa0bdd5f3c096d4cfe3a352f8c
[fuel.git] / mcp / reclass / classes / cluster / mcp-common-ha / 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   - system.glusterfs.client.cluster
11   - system.nova.compute.cluster
12   - system.nova.compute.nfv.hugepages
13   - system.neutron.gateway.cluster
14   - system.cinder.volume.single
15   - system.cinder.volume.backend.lvm
16   - system.ceilometer.agent.cluster
17   - system.ceilometer.agent.polling.default
18   - service.barbican.client.cluster
19   - cluster.all-mcp-arch-common.backports
20   - cluster.mcp-common-ha.glusterfs_repo
21   - cluster.mcp-common-ha.openstack_compute_pdf
22   - cluster.all-mcp-arch-common.opnfv.maas_proxy
23   - cluster.all-mcp-arch-common.opnfv.lab_proxy_pdf
24 parameters:
25   _param:
26     cluster_vip_address: ${_param:openstack_control_address}
27     cluster_local_address: ${_param:single_address}
28     cluster_node01_hostname: ${_param:openstack_control_node01_hostname}
29     cluster_node01_address: ${_param:openstack_control_node01_address}
30     cluster_node02_hostname: ${_param:openstack_control_node02_hostname}
31     cluster_node02_address: ${_param:openstack_control_node02_address}
32     cluster_node03_hostname: ${_param:openstack_control_node03_hostname}
33     cluster_node03_address: ${_param:openstack_control_node03_address}
34     nova_vncproxy_url: https://${_param:cluster_public_host}:6080
35     keepalived_vip_interface: br-ctl
36     keepalived_vip_virtual_router_id: 69
37     linux_system_codename: xenial
38   glusterfs:
39     client:
40       volumes:
41         nova_instances:
42           path: /var/lib/nova/instances
43           server: ${_param:glusterfs_service_host}
44           # yamllint disable-line rule:line-length
45           opts: "defaults,backup-volfile-servers=${_param:cluster_node01_address}:${_param:cluster_node02_address}:${_param:cluster_node03_address}"
46   cinder:
47     volume:
48       my_ip: ${_param:single_address}
49       backend:
50         lvm-driver:
51           # Align system.cinder.volume.backend.lvm and MaaS data
52           volume_group: ${linux:storage:lvm:cinder-vg:name}
53       database:
54         connection_recycle_time: ${_param:db_connection_recycle_time}
55       barbican:
56         enabled: ${_param:barbican_integration_enabled}
57   linux:
58     storage:
59       lvm:
60         # Align with both system.cinder.volume.backend.lvm and MaaS data
61         cinder-vg:
62           name: vgroot
63     system:
64       kernel:
65         sysctl:
66           vm.dirty_ratio: 10
67           vm.dirty_background_ratio: 5
68         boot_options:
69           - spectre_v2=off
70           - nopti
71           - nospec_store_bypass_disable
72           - noibrs
73           - noibpb
74       file:
75         /var/tmp/dhcp_agent.patch:
76           contents: |
77             549,551c549,550
78             <                 self.schedule_resync("Duplicate IP addresses found, "
79             <                                      "DHCP cache is out of sync",
80             <                                      created_port.network_id)
81             ---
82             >                 LOG.info("Duplicate IP addresses found for %s network",
83             >                          created_port.network_id)
84   neutron:
85     gateway:
86       vlan_aware_vms: true
87       root_helper_daemon: false
88       dhcp_lease_duration: 3600
89       report_interval: 120
90   nova:
91     compute:
92       disk_cachemodes: file=directsync,block=none
93       preallocate_images: space
94       heal_instance_info_cache_interval: 300
95       barbican:
96         enabled: ${_param:barbican_integration_enabled}
97       image:
98         verify_glance_signatures: false