blob: ca63bc485481ec8ad1aae7c23b6b541dfab6eaf1 [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.
Dennis Dmitriev7de24762017-07-17 18:34:06 +030018 linux_network_interfaces:
19 {{ toyaml( node['parameters']['linux']['network']['interface'], width=14 ) }}
Dennis Dmitriev65a80ee2017-06-30 17:30:37 +030020{%- endif %}
21 classes:
Dennis Dmitriev0cea5702017-07-17 19:03:23 +030022 - environment.{{ _environment_name }}.common
Dennis Dmitriev65a80ee2017-06-30 17:30:37 +030023{%- endfor %}