alysoid / ansible-systemd-networkd

Manage system network with systemd using systemd-networkd.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Catena Ansible Role: systemd-networkd

Manage system network with systemd using systemd-networkd, a system service that manages networks. It detects and configures network devices as they appear, as well as creating virtual network devices. Low-level link settings can be set independently of networks.

Role variables

Variable Default Info
catena_network [] Apply a network configuration for a matching device.
catena_netdev [] Create a virtual network device for a matching environment.
catena_link [] Create link settings. When a network device appears, udev will look for the first matching.
catena_network_cleanup no Remove existing configuration files: /etc/systemd/network/{*.network}{*.netdev}{*.link}

catena_network

Manage systemd.network - Network configuration files.

Configuration files will have the .network extension and will be placed in the local administration network directory /etc/systemd/network.

# Defaults
catena_network: []

# Example
catena_network:
  # /etc/systemd/network/eth0.network
  - name: eth0
    options:
      Match:
        Name: eth0
      Network:
        Address: 192.168.0.1/24
        Gateway: 192.168.0.254
        MulticastDNS: "yes"

catena_netdev

Manage systemd.netdev - Virtual Network Device configuration files.

Configuration files will have the .netdev extension and will be placed in the local administration network directory /etc/systemd/network.

# Defaults
catena_netdev: []

# Example
catena_netdev:
  # /etc/systemd/network/25-bridge.netdev
  - name: 25-bridge
    options:
      NetDev:
        Name: bridge0
        Kind: bridge

catena_link

Manage systemd.link - Network device configuration files.

Configuration files will have the .link extension and will be placed in the local administration network directory /etc/systemd/network.

# Defaults
catena_link: []

# Example
catena_link:
  # /etc/systemd/network/10-dmz.link
  - name: 10-dmz
    options:
      Match:
        MACAddress: 00:a0:de:63:7a:e6
      Link:
        Name: dmz0

About

Manage system network with systemd using systemd-networkd.

License:MIT License


Languages

Language:YAML 91.4%Language:Jinja 8.6%