Giter Club home page Giter Club logo

ansible-docker-macvlan-trunk's Introduction

docker_macvlan_trunk

This will configure a macvlan-trunk-based network based on a parent trunk device. macvlan has certain limitations in addition to its advantages when in bridge mode so be sure to either understand what is being accomplished here before making an attempt or else do so in a sandbox virtual network.

Improper configuration can disrupt network connectivity both to the host being configured as well as to all other hosts on the network to which it is attached.

See also ansible-systemd-networkd-macvlan-trunk.

Requirements

Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.

Role Variables

iprange

The range from which to auto-assign addresses for this docker host. Ensure it doesn't overlap any real hosts or else assign static IPs to each docker container.

gateway

The gateway present on your local network.

subnet

Your network's subnet.

network_name

The network's name as it will be configured in docker.

parent

The parent device for macvlan devices.

Dependencies

There is no playbook dependency but the example uses my related systemd_networkd_macvlan_trunk for ease of deployment.

Example Playbook

  • role: jamesandariese.systemd_networkd_macvlan_trunk
  • role: jamesandariese.docker_macvlan_bridge iprange: "192.168.1.240/28" gateway: "192.168.1.1" subnet: "192.168.1.0/24" network_name: trunk parent: trunk

License

MIT

Author Information

Copyright 2022, James Andariese (first name at strudelline.net).

ansible-docker-macvlan-trunk's People

Watchers

 avatar  avatar  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.