Galaxy
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

network

Source Code Build Status License: MIT

Manage linux network configuration.


Default Variables

network_defaultif

Default value

network_defaultif: eth0

network_disable_ipv6

Default value

network_disable_ipv6: false

network_dns_server

Default value

network_dns_server: 8.8.8.8

network_fqdn

Default value

network_fqdn: localdomain

network_hostname

Default value

network_hostname: localhost

network_hosts_entries

Default value

network_hosts_entries: []

Example usage

network_hosts_entries:
  - hostname: myhost
    fqdn: myhost.rknet.org
    address: 1.2.3.4

network_interfaces

Default value

network_interfaces: {}

Example usage

network_interfaces:
  eth0:
    bootproto: none
    onboot: yes
    hwaddr: "aa:bb:cc:dd:ee"
    ipaddr: 192.168.0.5
    prefix: 26
    gateway: "192.168.0.1"
    userctl: no

network_routes

Default value

network_routes: {}

Example usage

network_routes:
  eth0: |
    10.168.0.1/32 via 0.0.0.0 dev eth0 scope link
    10.168.0.0/27 via 10.168.0.1 dev eth0    

Dependencies

None.