Merge "[maas] Adopt maas.machines.storage"
[fuel.git] / mcp / reclass / classes / cluster / mcp-pike-common-ha / infra / maas.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.maas.region.single
11   - service.maas.cluster.single
12   - cluster.mcp-pike-common-ha.include.lab_proxy_pdf
13   - cluster.mcp-pike-common-ha.infra.maas_pdf
14 parameters:
15   _param:
16     dhcp_interface: ${_param:opnfv_fn_vm_primary_interface}
17     primary_interface: ${_param:opnfv_fn_vm_secondary_interface}
18     pxe_interface: ${_param:opnfv_fn_vm_tertiary_interface}
19     interface_mtu: 1500
20     # MaaS has issues using MTU > 1500 for PXE interface
21     pxe_interface_mtu: 1500
22     linux_system_codename: xenial
23     maas_admin_username: opnfv
24     maas_admin_password: opnfv_secret
25     maas_db_password: opnfv_secret
26     dns_server01: ${_param:opnfv_dns_server01}
27     single_address: ${_param:infra_maas_node01_deploy_address}
28     hwe_kernel: 'hwe-16.04'
29   maas:
30     region:
31       salt_master_ip: ${_param:reclass_config_master}
32       domain: ${_param:cluster_domain}
33       maas_config:
34         commissioning_distro_series: 'xenial'
35         default_distro_series: 'xenial'
36         default_osystem: 'ubuntu'
37         default_storage_layout: 'lvm'
38         enable_http_proxy: true
39         disk_erase_with_secure_erase: false
40         dnssec_validation: 'no'
41         enable_third_party_drivers: true
42         network_discovery: 'enabled'
43         default_min_hwe_kernel: ${_param:hwe_kernel}
44     cluster:
45       saltstack_repo_xenial: "http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.11/ xenial main"
46   linux:
47     network:
48       interface:
49         dhcp_interface:
50           enabled: true
51           name: ${_param:dhcp_interface}
52           type: eth
53           proto: dhcp
54         primary_interface:
55           enabled: true
56           name: ${_param:primary_interface}
57           mtu: ${_param:interface_mtu}
58           proto: static
59           address: ${_param:infra_maas_node01_address}
60           netmask: 255.255.255.0
61           type: eth
62         pxe_interface:
63           enabled: true
64           name: ${_param:pxe_interface}
65           mtu: ${_param:pxe_interface_mtu}
66           proto: static
67           address: ${_param:single_address}
68           netmask: 255.255.255.0
69           type: eth