| Dennis Dmitriev | f4826bc | 2017-09-28 19:03:54 +0300 | [diff] [blame] | 1 | {#- Management (admin) network. For nodes where deploy address must be configured as static (at least cfg*) #} | 
|  | 2 | {#- Provides:                         #} | 
|  | 3 | {#-   br_mgm (linux bridge) + address #} | 
|  | 4 | {#- Requires:                         #} | 
|  | 5 | {#-   _param:deploy_address         #} | 
|  | 6 | {#-   _param:deploy_network_netmask         #} | 
|  | 7 | {#-   _param:deploy_network_gateway         #} | 
|  | 8 | {#-   _param:dns_server01         #} | 
|  | 9 | {#-   _param:dns_server02         #} | 
| Dennis Dmitriev | f4826bc | 2017-09-28 19:03:54 +0300 | [diff] [blame] | 10 | # {{ interfaces_role }} | 
|  | 11 | {%- set interface_name = interfaces.keys()[0] %} | 
|  | 12 | {{ interface_name }}: | 
|  | 13 | enabled: true | 
|  | 14 | name: {{ interface_name }} | 
|  | 15 | proto: manual | 
|  | 16 | type: eth | 
|  | 17 | ipflush_onchange: true | 
|  | 18 | br_mgm: | 
|  | 19 | address: ${_param:_esc}{_param:deploy_address} | 
|  | 20 | netmask: ${_param:_esc}{_param:deploy_network_netmask}  #lab03: 255.255.255.192 | 
|  | 21 | gateway: ${_param:_esc}{_param:deploy_network_gateway}  #lab03: 172.16.49.1 | 
|  | 22 | enabled: true | 
|  | 23 | name_servers: | 
|  | 24 | - ${_param:_esc}{_param:dns_server01} | 
|  | 25 | - ${_param:_esc}{_param:dns_server02} | 
|  | 26 | proto: static | 
|  | 27 | type: bridge | 
|  | 28 | use_interfaces: | 
| Dennis Dmitriev | cf5f43b | 2017-10-11 15:10:27 +0300 | [diff] [blame] | 29 | - {{ interface_name }} |