Giter VIP home page Giter VIP logo

Comments (3)

arBmind avatar arBmind commented on July 20, 2024

Hi hvisage,

so far I had no use case for bridges.
The defaults/main.yml contains all the available options and defaults.
If you have a use case, I would be more than happy to make an example out of it.

Yes my role creates a new /etc/network/interfaces that includes a configuration file for each device. That should make it much easier to manage the individual network devices.

from ansible-network-interfaces.

starkers avatar starkers commented on July 20, 2024

Just thinking out loud here but that shouldn't be too hard to add.

step one

  • add the bridge-ports key to the device.j2 with (line 6)

step two

  • ensure bridging utils are installed:
    apt: pkg=bridge-utils state=present

step three

  • use a config something like this maybe?
network_interfaces:

- device: eth0
  description: bridge 1, NIC A
  auto: true
  family: inet
  method: manual

- device: eth1
  description: bridge 1, NIC B
  auto: true
  family: inet
  method: manual

- device: br0
  description: bridge 1
  auto: true
  method: dhcp
  bridge_ports: "eth0 eth1"

I'm guessing that would result in something like this hopefully:

 iface eth0 inet manual
 iface eth1 inet manual

 iface br0 inet dhcp
  bridge_ports eth0 eth1

from ansible-network-interfaces.

arBmind avatar arBmind commented on July 20, 2024

I added this example to the wiki Bridge-Example

from ansible-network-interfaces.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.