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 ##############################################################################
9 {%- set cluster_arch = [] %}
10 {%- for node in conf.nodes %}
11 {%- if node.node.arch not in cluster_arch %}
12 {%- do cluster_arch.append(node.node.arch) %}
15 {%- set net_admin = [conf.idf.net_config.admin.network,
16 conf.idf.net_config.admin.mask] | join("/") %}
24 gateway_ip: ${_param:single_address}
26 start: ${_param:opnfv_infra_maas_pxe_start_address}
27 end: ${_param:opnfv_infra_maas_pxe_end_address}
33 primary_rack: ${_param:infra_maas_node01_hostname}
35 - '{{ conf.MAAS_SSH_KEY }}'
36 {%- if 'aarch64' in cluster_arch %}
41 url: 'http://linux.enea.com/mcp-repos/${_param:openstack_version}/${_param:linux_system_codename}'
42 distributions: '${_param:openstack_version}-armband'
46 -----BEGIN PGP PUBLIC KEY BLOCK-----
47 Version: GnuPG v2.0.14 (GNU/Linux)
49 mQENBFagAroBCADWboNIjuF6lB1mWv2+EbvqY3lKl5mLKhr2DnSUkKeHUPBv8gNM
50 qK8Q00AMIyPiyEhgjA+dWizZ+5aBgxoiY7oMeLJ2Xym36U/8SYq2BWd3SGCbMNoz
51 SJDxDUSM/HFVs6atF1M3DY9oN65hSVnu4uy5Tu6asf6k4rhAyk0z4+pRcPBCu2vq
52 mnGi3COM/+9PShrEKeVOx5W2vRJywUFuq8EDvQnRoJ0GvM28JiJIanw17YwIPxhg
53 BKZVpZjan5X+ihVMXwA2h/G/FS5Omhd50RqV6LWSYs94VJJgYqHx8UMm7izcxI+P
54 ct3IcbD195bPbJ+SbuiFe45ZLsdY1MyGiU2BABEBAAG0K0VuZWEgQXJtYmFuZCBE
55 ZXZvcHMgVGVhbSA8YXJtYmFuZEBlbmVhLmNvbT6JATgEEwECACICGwMGCwkIBwMC
56 BhUIAgkKCwQWAgMBAh4BAheABQJaY3bYAAoJEN6rkLp5irHRoQMH/0PYl0A/6eWw
57 nQ/szhEFrr76Ln6wA4vEO+PiuWj9kTkZM2NaCnkisrIuHSPIVvOLfFmztbE6sKGe
58 t+a2b7Jqw48DZ/gq508aZE4Q307ookxdCOrzIu/796hFO34yXg3sqZoJh3VmKIjY
59 4DL8yG1iAiQ5vOw3IFWQnATwIZUgaCcjmE7HGap+9ePuJfFuQ8mIG5cy28t8qocx
60 AB/B2tucfBMwomYxKqgbLI5AG7iSt58ajvrrNa9f8IX7Ihj/jiuXhUwX+geEp98K
61 IWVI1ftEthZvfBpZW4BS98J4z//dEPi31L4jb9RQXq3afF2RpXchDeUN85bW45nu
64 -----END PGP PUBLIC KEY BLOCK-----
67 {%- set pxe_interface = conf.idf.net_config.admin.interface %}
68 {#- We only support exactly 5 nodes for now, hardcoded order #}
69 {%- set node_roles = ['kvm01', 'kvm02', 'kvm03', 'cmp001', 'cmp002'] %}
70 {%- for node in conf.nodes %}
71 {%- if node.node.type == 'baremetal' %}
72 {{ node_roles[loop.index0] }}:
74 mac: {{ node.interfaces[pxe_interface].mac_address }}
76 power_address: {{ node.remote_management.address.rsplit('/')[0] }}
77 power_password: {{ node.remote_management.pass }}
78 power_type: {{ node.remote_management.type }}
79 power_user: {{ node.remote_management.user }}
80 architecture: {{ node.node.arch | dpkg_arch }}/generic
82 hwe_kernel: ${_param:hwe_kernel}