Dennis Dmitriev | 9ace767 | 2018-10-01 18:50:31 +0300 | [diff] [blame] | 1 | {#- Control network. For control plane nodes #} |
| 2 | {#- Provides: #} |
| 3 | {#- br_ctl (linux bridge) + address #} |
| 4 | {#- _param:keepalived_vip_interface = 'br_ctl' #} |
| 5 | {#- Requires: #} |
| 6 | {#- _param:single_address #} |
| 7 | {#- _param:control_network_netmask #} |
| 8 | {#- _param:dns_server01 #} |
| 9 | {#- _param:dns_server02 #} |
| 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_ctl: |
| 19 | address: ${_param:_esc}{_param:single_address} |
| 20 | enabled: true |
| 21 | netmask: ${_param:_esc}{_param:control_network_netmask} |
| 22 | proto: static |
| 23 | type: bridge |
| 24 | name_servers: |
| 25 | - ${_param:_esc}{_param:dns_server01} |
| 26 | - ${_param:_esc}{_param:dns_server02} |
| 27 | use_interfaces: |
| 28 | - {{ interface_name }} |
| 29 | require_interfaces: |
| 30 | - {{ interface_name }} |
Dennis Dmitriev | 09a2256 | 2018-10-02 01:49:29 +0300 | [diff] [blame] | 31 | post_up_cmds: |
Dennis Dmitriev | 9ace767 | 2018-10-01 18:50:31 +0300 | [diff] [blame] | 32 | - ip r rep 10.254.0.0/16 via ${_param:single_address} |