maas: boot-resources: Dynamic arch list from PDF
[fuel.git] / mcp / reclass / classes / cluster / all-mcp-arch-common / infra / config_pdf.yml.j2
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 {%- import 'net_map.j2' as nm with context %}
9 ---
10 parameters:
11   reclass:
12     storage:
13       node:
14         # NOTE: Until SDF is in place, assume all computes are identical
15         openstack_compute_node01: &openstack_compute_node01
16           params:
17 {#- No partial defaults, all or nothing. Defaults tuned for lf-pod2. #}
18 {%- if conf.idf.fuel.reclass is defined %}
19 {%- if conf.idf.fuel.reclass.node[nm.cmp001.idx].compute_params.common is defined %}
20 {%- set _common = conf.idf.fuel.reclass.node[nm.cmp001.idx].compute_params.common %}
21 {%- for _i in _common %}
22             {{ _i }}: '"{{ _common[_i] }}"'
23 {%- endfor %}
24 {%- else %}
25             dummy_value: ~
26 {%- endif %}
27 {%- else %}
28             compute_hugepages_size: 1G
29             compute_hugepages_count: 16
30             compute_hugepages_mount: /mnt/hugepages_1G
31 {%- endif %}
32         openstack_compute_node02:
33           <<: *openstack_compute_node01