Andrew Baraniuk | b2a9baa | 2019-04-24 08:32:21 +0300 | [diff] [blame] | 1 | {#- Control network with mgm. For compute nodes using 1 interface for mgm and ctl+vlan #} |
| 2 | {#- Provides: #} |
| 3 | {#- Requirements: #} |
| 4 | {#- _param:single_address #} |
| 5 | {#- _param:deploy_address #} |
| 6 | {#- _param:deploy_network_netmask #} |
| 7 | {#- _param:deploy_network_gateway #} |
| 8 | {#- _param:control_network_netmask #} |
| 9 | {#- _param:control_vlan #} |
| 10 | |
| 11 | # {{ interfaces_role }} |
| 12 | {%- set interface_name = interfaces.keys()[0] %} |
| 13 | {{ interface_name }}: |
| 14 | mtu: 1500 |
| 15 | enabled: true |
| 16 | name: {{ interface_name }} |
| 17 | type: eth |
| 18 | ipflush_onchange: true |
| 19 | restart_on_ipflush: true |
| 20 | proto: manual |
| 21 | br_mgm: |
| 22 | enabled: true |
| 23 | proto: dhcp |
| 24 | type: bridge |
| 25 | ipflush_onchange: true |
| 26 | restart_on_ipflush: true |
| 27 | use_interfaces: |
| 28 | - {{ interface_name }} |
| 29 | {{ interface_name }}.control_vlan: |
| 30 | mtu: 1500 |
| 31 | name: {{ interface_name }}.${_param:_esc}{_param:control_vlan} |
| 32 | enabled: true |
| 33 | proto: manual |
| 34 | type: vlan |
| 35 | br_ctl: |
| 36 | enabled: true |
| 37 | address: ${_param:_esc}{_param:single_address} |
| 38 | netmask: ${_param:_esc}{_param:control_network_netmask} |
| 39 | proto: static |
| 40 | type: bridge |
| 41 | name_servers: |
| 42 | - ${_param:_esc}{_param:dns_server01} |
| 43 | - ${_param:_esc}{_param:dns_server02} |
| 44 | use_interfaces: |
| 45 | - {{ interface_name }}.${_param:_esc}{_param:control_vlan} |
| 46 | require_interfaces: |
| 47 | - {{ interface_name }}.${_param:_esc}{_param:control_vlan} |