Git Product home page Git Product logo

ansible-role_el-network's Introduction

el-network

Ansible role for managing network interfaces on enterprise linux.

Requirements

  • netaddr

Note: This role isn't compatible with firewalld

Role Variables

  • el_network_interfaces: List of interfaces
    • iface: Name of the interface
    • Common interface options:
      • ip4: IPv4 address in CIDR notation
      • gw4: Default gateway
      • bridge: Name of bridge interface this is a member of
    • type: Type of interface
      • ethernet
        • dhcp: Enable dhcp
        • vlan: Enable vlan support
      • bond-slave
        • master: Name of parent bond interface
      • bond
        • bonding_mode: Default value 4 - 802.3ad
        • lacp_rate: Default value 1 - fast
        • xmit_hash_policy: Default value layer3+4
        • miimon: Default value 100
      • bridge
  • el_network_whitelist_ifaces: List of whitelisted interfaces to not remove. Typically lo and idrac.
  • el_network_configured_ifaces: Auto-generated variable that is a list of interfaces on the target host to configure.

Dependencies

N/A

Example Playbook

Example vars setup:

el_network_interfaces:
  - iface: ens32
    type: ethernet
    ip4: '192.168.0.10/24'

  - iface: ens33
    type: bond-slave
    master: bond0

  - iface: bond0
    type: bond
    bonding_mode: 4
    bridge: br0

  - iface: bond0.10
    type: ethernet
    vlan: yes

  - iface: br0
    type: bridge
    ip4: '10.0.0.10/24'
    gw4: '10.0.0.1'

Then simply run the role:

- hosts: servers
  roles:
    - el-network

OVS

Simple OVS support exists to integrate an interface and/or bridge into OVS. Note: This role does not install OVS, that is left up to the admin.

el_network_interfaces:
  - iface: ens33
    type: ethernet
    bridge: br-ex
    ovs: yes

  - iface: br-ex
    type: bridge
    ovs: yes
    ip4: '172.16.0.10/24'

ansible-role_el-network's People

Contributors

davidmnoriega avatar peterp415 avatar

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.