Rename reclass models to add "-ha" or "-noha"
[fuel.git] / mcp / reclass / classes / cluster / virtual-mcp-pike-common-noha / 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   - service.nfs.client
12   - system.nova.compute.single
13   - service.neutron.compute.single
14   - service.cinder.volume.single
15   - system.cinder.volume.backend.lvm
16   - system.ceilometer.agent.cluster
17   - system.ceilometer.client.nova_compute
18   - system.ceilometer.client.cinder_volume
19 parameters:
20   _param:
21     primary_interface: ${_param:opnfv_fn_vm_secondary_interface}
22     tenant_interface: ${_param:opnfv_fn_vm_tertiary_interface}
23     external_interface: ${_param:opnfv_fn_vm_quaternary_interface}
24     interface_mtu: 9000
25     linux_system_codename: xenial
26     loopback_device_size: 20
27   nova:
28     compute:
29       libvirt_service: libvirtd
30       libvirt_bin: /etc/default/libvirtd
31       vncproxy_url: http://${_param:cluster_vip_address}:6080
32       network:
33         region: ${_param:openstack_region}
34         user: neutron
35         tenant: service
36         password: ${_param:keystone_neutron_password}
37   neutron:
38     compute:
39       notification: true
40       vlan_aware_vms: true
41       agent_mode: ${_param:neutron_compute_agent_mode}
42       message_queue:
43         host: ${_param:openstack_control_address}
44       metadata:
45         host: ${_param:openstack_control_address}
46   cinder:
47     volume:
48       database:
49         host: ${_param:cluster_local_address}
50       identity:
51         host: ${_param:cluster_local_address}
52       glance:
53         host: ${_param:cluster_local_address}
54       message_queue:
55         host: ${_param:cluster_local_address}
56   nfs:
57     client:
58       mount:
59         nfs:
60           path: /var/lib/nova/instances
61           fstype: nfs
62           device: ${_param:openstack_control_address}:/srv/nova/instances
63   linux:
64     system:
65       kernel:
66         sysctl:
67           vm.dirty_ratio: 10
68           vm.dirty_background_ratio: 5
69     network:
70       bridge: openvswitch
71       interface:
72         dhcp_int:
73           enabled: true
74           name: ${_param:opnfv_fn_vm_primary_interface}
75           proto: dhcp
76           type: eth
77           mtu: ${_param:interface_mtu}
78         primary_interface:
79           enabled: true
80           name: ${_param:primary_interface}
81           proto: manual
82           type: eth
83         tenant_interface:
84           enabled: true
85           name: ${_param:tenant_interface}
86           mtu: ${_param:interface_mtu}
87           proto: manual
88           type: eth
89         br-mgmt:
90           enabled: true
91           type: bridge
92           proto: static
93           address: ${_param:single_address}
94           netmask: 255.255.255.0
95           use_interfaces:
96             - ${_param:primary_interface}