Merge "Enable neutron trunk ports" into stable/euphrates
[fuel.git] / mcp / reclass / classes / cluster / virtual-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.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       repo:
66         uca:
67           source: "deb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main"
68           architectures: amd64
69           key_id: EC4926EA
70           key_server: keyserver.ubuntu.com
71       kernel:
72         sysctl:
73           vm.dirty_ratio: 10
74           vm.dirty_background_ratio: 5
75     network:
76       bridge: openvswitch
77       interface:
78         dhcp_int:
79           enabled: true
80           name: ${_param:opnfv_fn_vm_primary_interface}
81           proto: dhcp
82           type: eth
83           mtu: ${_param:interface_mtu}
84         primary_interface:
85           enabled: true
86           name: ${_param:primary_interface}
87           proto: manual
88           type: eth
89         tenant_interface:
90           enabled: true
91           name: ${_param:tenant_interface}
92           mtu: ${_param:interface_mtu}
93           proto: manual
94           type: eth
95         br-mgmt:
96           enabled: true
97           type: bridge
98           proto: static
99           address: ${_param:single_address}
100           netmask: 255.255.255.0
101           use_interfaces:
102             - ${_param:primary_interface}