Ver código fonte

vlan networking support

tags/2016.12
Jan Kaufman 9 anos atrás
pai
commit
6a1ad71c20
2 arquivos alterados com 28 adições e 2 exclusões
  1. +18
    -2
      README.rst
  2. +10
    -0
      linux/network/interface.sls

+ 18
- 2
README.rst Ver arquivo

@@ -223,6 +223,22 @@ Linux with bonded interfaces
- interface: ${linux:interface:eth0}
- interface: ${linux:interface:eth0}

Linux with vlan interface_params

.. code-block:: yaml

linux:
network:
enabled: true
interface:
vlan69:
type: vlan
use_in:
- interface: ${linux:interface:bond0}
require:
- interface: ${linux:interface:bond0}


Linux with wireless interface parameters

.. code-block:: yaml
@@ -231,7 +247,7 @@ Linux with wireless interface parameters
network:
enabled: true
gateway: 10.0.0.1
default_interface: eth0
default_interface: eth0
interface:
wlan0:
type: eth
@@ -249,7 +265,7 @@ Linux networks with routes defined
network:
enabled: true
gateway: 10.0.0.1
default_interface: eth0
default_interface: eth0
interface:
eth0:
type: eth

+ 10
- 0
linux/network/interface.sls Ver arquivo

@@ -126,6 +126,16 @@ linux_interface_{{ interface_name }}:
- network: linux_interface_{{ network }}
{%- endfor %}
{%- endif %}
{%- if interface.type == 'vlan' %}
- use:
{%- for network in interface.use_interfaces %}
- network: {{ network }}
{%- endfor %}
- require:
{%- for network in interface.use_interfaces %}
- network: {{ network }}
{%- endfor %}
{%- endif %}

{%- if interface.gateway is defined %}


Carregando…
Cancelar
Salvar