Return back glusterfs client state
[fuel.git] / mcp / reclass / classes / cluster / baremetal-mcp-ocata-common / 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.system.repo.mcp.openstack
11   - system.linux.system.repo.mcp.extra
12   - system.linux.storage.loopback
13   - system.glusterfs.client.cluster
14   - system.nova.compute.cluster
15   - system.nova.compute.nfv.hugepages
16   - system.nova.compute.nfv.cpu_pinning
17   - system.neutron.gateway.cluster
18   - system.cinder.volume.single
19   - system.cinder.volume.backend.lvm
20   - system.ceilometer.agent.cluster
21 parameters:
22   _param:
23     cluster_vip_address: ${_param:openstack_control_address}
24     cluster_local_address: ${_param:control_address}
25     cluster_node01_hostname: ctl01
26     cluster_node01_address: ${_param:openstack_control_node01_address}
27     cluster_node02_hostname: ctl02
28     cluster_node02_address: ${_param:openstack_control_node02_address}
29     cluster_node03_hostname: ctl03
30     cluster_node03_address: ${_param:openstack_control_node03_address}
31     nova_vncproxy_url: https://${_param:cluster_public_host}:6080
32     mgmt_nic: ${_param:opnfv_baremetal_primary_nic}
33     external_nic: ${_param:opnfv_baremetal_tertiary_nic}
34     interface_mtu: 1500
35     keepalived_vip_interface: br-ctl
36     keepalived_vip_virtual_router_id: 69
37     loopback_device_size: 20
38     linux_system_codename: xenial
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     system:
49       kernel:
50         sysctl:
51           vm.dirty_ratio: 10
52           vm.dirty_background_ratio: 5
53     network:
54       bridge: openvswitch
55       interface:
56         mgmt_nic:
57           enabled: true
58           type: eth
59           proto: dhcp
60           name: ${_param:mgmt_nic}
61         external_nic:
62           enabled: true
63           name: ${_param:external_nic}
64           mtu: ${_param:interface_mtu}
65           proto: manual
66           type: eth
67         mgmt-vlan:
68           enabled: true
69           proto: manual
70           type: vlan
71           name: ${_param:mgmt_nic}.${_param:opnfv_net_mgmt_vlan}
72           use_interfaces:
73             - ${_param:mgmt_nic}
74         br-ctl:
75           enabled: true
76           type: bridge
77           proto: static
78           address: ${_param:single_address}
79           netmask: 255.255.255.0
80           use_interfaces:
81             - ${_param:mgmt_nic}.${_param:opnfv_net_mgmt_vlan}
82         br-floating:
83           enabled: true
84           type: ovs_bridge
85           mtu: ${_param:interface_mtu}
86         float-to-ex:
87           enabled: true
88           type: ovs_port
89           mtu: ${_param:interface_mtu}
90           bridge: br-floating
91         br-ex:
92           enabled: true
93           type: bridge
94           mtu: ${_param:interface_mtu}
95           address: ${_param:external_address}
96           netmask: 255.255.255.0
97           use_interfaces:
98             - ${_param:external_nic}
99           use_ovs_ports:
100             - float-to-ex