Merge "[ha] Add barbican to nginx on proxy nodes"
[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.linux.system.repo.mcp.mirror.v1.openstack
11   - system.linux.system.single.simple
12   - system.glusterfs.client.cluster
13   - system.nova.compute.cluster
14   - system.nova.compute.nfv.hugepages
15   - system.neutron.gateway.cluster
16   - system.cinder.volume.single
17   - system.cinder.volume.backend.lvm
18   - system.ceilometer.agent.cluster
19   - system.ceilometer.agent.polling.default
20   - service.barbican.client.cluster
21   - cluster.mcp-common-ha.glusterfs_repo
22   - cluster.mcp-common-ha.openstack_compute_pdf
23   - cluster.all-mcp-arch-common.opnfv.maas_proxy
24   - cluster.all-mcp-arch-common.opnfv.lab_proxy_pdf
25 parameters:
26   _param:
27     cluster_vip_address: ${_param:openstack_control_address}
28     cluster_local_address: ${_param:single_address}
29     cluster_node01_hostname: ${_param:openstack_control_node01_hostname}
30     cluster_node01_address: ${_param:openstack_control_node01_address}
31     cluster_node02_hostname: ${_param:openstack_control_node02_hostname}
32     cluster_node02_address: ${_param:openstack_control_node02_address}
33     cluster_node03_hostname: ${_param:openstack_control_node03_hostname}
34     cluster_node03_address: ${_param:openstack_control_node03_address}
35     nova_vncproxy_url: https://${_param:cluster_public_host}:6080
36     interface_mtu: 1500
37     keepalived_vip_interface: br-ctl
38     keepalived_vip_virtual_router_id: 69
39     linux_system_codename: xenial
40   glusterfs:
41     client:
42       volumes:
43         nova_instances:
44           path: /var/lib/nova/instances
45           server: ${_param:glusterfs_service_host}
46           # yamllint disable-line rule:line-length
47           opts: "defaults,backup-volfile-servers=${_param:cluster_node01_address}:${_param:cluster_node02_address}:${_param:cluster_node03_address}"
48   cinder:
49     volume:
50       my_ip: ${_param:single_address}
51       backend:
52         lvm-driver:
53           # Align system.cinder.volume.backend.lvm and MaaS data
54           volume_group: ${linux:storage:lvm:cinder-vg:name}
55       database:
56         connection_recycle_time: ${_param:db_connection_recycle_time}
57       barbican:
58         enabled: ${_param:barbican_integration_enabled}
59   linux:
60     storage:
61       lvm:
62         # Align with both system.cinder.volume.backend.lvm and MaaS data
63         cinder-vg:
64           name: vgroot
65     system:
66       kernel:
67         sysctl:
68           vm.dirty_ratio: 10
69           vm.dirty_background_ratio: 5
70         ~boot_options:
71           - spectre_v2=off
72           - nopti
73           - ipv6.disable=0
74   neutron:
75     gateway:
76       vlan_aware_vms: true
77       root_helper_daemon: false
78   nova:
79     compute:
80       disk_cachemodes: file=directsync,block=none
81       preallocate_images: space
82       barbican:
83         enabled: ${_param:barbican_integration_enabled}
84       image:
85         verify_glance_signatures: false