summaryrefslogtreecommitdiffstats
path: root/mcp/reclass/classes/cluster/all-mcp-arch-common/infra/config_pdf.yml.j2
blob: 677f0c9a01ca79d70057f3a1f513c7551ed4d732 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
##############################################################################
# Copyright (c) 2018 Mirantis Inc., Enea AB and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
{%- import 'net_map.j2' as nm with context %}
---
parameters:
  reclass:
    storage:
      node:
        # NOTE: Until SDF is in place, assume all computes are identical
        openstack_compute_node01: &openstack_compute_node01
          params:
{#- No partial defaults, all or nothing. Defaults tuned for lf-pod2. #}
{%- if conf.idf.fuel.reclass is defined %}
{%- if conf.idf.fuel.reclass.node[nm.cmp001.idx].compute_params.common is defined %}
{%- set _common = conf.idf.fuel.reclass.node[nm.cmp001.idx].compute_params.common %}
{%- for _i in _common %}
            {{ _i }}: '"{{ _common[_i] }}"'
{%- endfor %}
{%- else %}
            dummy_value: ~
{%- endif %}
{%- else %}
            nova_cpu_pinning: '"1,2,3,4,5,7,8,9,10,11"'
            compute_hugepages_size: 1G
            compute_hugepages_count: 16
            compute_hugepages_mount: /mnt/hugepages_1G
            compute_kernel_isolcpu: ${_param:nova_cpu_pinning}
{%- endif %}
        openstack_compute_node02:
          <<: *openstack_compute_node01