blob: d1b5b7f16d3abacb1d7ae1b473ab498feb06e37c [file] [log] [blame]
Dennis Dmitriev65a80ee2017-06-30 17:30:37 +03001parameters:
2 reclass:
3 storage:
4 node:
5{%- for inventory_node_name, node in cookiecutter.nodes.items() %}
6 {{ node['reclass_storage_name'] }}:
7 params:
8{%- if 'vcp' in node['roles'] %}
9 linux_network_interfaces:
10 ens3: ${_param:linux_single_interface}
11{%- else %}
Dennis Dmitriev86750962017-07-11 19:44:05 +030012 # Use interfaces configuration from the context file,
13 # or generate your own 'linux.network.interface' object using
14 # additional inventory.
15 # For example, you can take the 'inventory_node_name' and find it's config
16 # in an additional dict inventory[inventory_node_name] loaded from custom_inventory.yaml,
17 # or skip the original context from 'cookiecutter' object and iterate only custom inventory.
18 linux_network_interfaces: {{ node['parameters']['linux']['network']['interface'] }}
Dennis Dmitriev65a80ee2017-06-30 17:30:37 +030019{%- endif %}
20 classes:
21 - environment.{{ cookiecutter.cluster_name }}.networking
22{%- endfor %}