Dennis Dmitriev | 65a80ee | 2017-06-30 17:30:37 +0300 | [diff] [blame] | 1 | parameters: |
| 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 Dmitriev | 8675096 | 2017-07-11 19:44:05 +0300 | [diff] [blame] | 12 | # 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 Dmitriev | 7de2476 | 2017-07-17 18:34:06 +0300 | [diff] [blame] | 18 | linux_network_interfaces: |
| 19 | {{ toyaml( node['parameters']['linux']['network']['interface'], width=14 ) }} |
Dennis Dmitriev | 65a80ee | 2017-06-30 17:30:37 +0300 | [diff] [blame] | 20 | {%- endif %} |
| 21 | classes: |
Dennis Dmitriev | 0cea570 | 2017-07-17 19:03:23 +0300 | [diff] [blame^] | 22 | - environment.{{ _environment_name }}.common |
Dennis Dmitriev | 65a80ee | 2017-06-30 17:30:37 +0300 | [diff] [blame] | 23 | {%- endfor %} |