Default variable details
Some of debops.dropbear_initramfs default variables have more extensive
configuration than simple strings or lists, here you can find documentation and
examples for them.
dropbear_initramfs__interfaces
The dropbear_initramfs__interfaces and similar dictionaries behave
similar to the ifupdown__*_interfaces dictionaries of the debops.ifupdown
role. Refer to the documentation of debops.ifupdown for details.
Compared to the debops.ifupdown, only a limited subset of parameters is currently supported:
typeOptional. Anything other than
etherwill be ignored.inetOptional. IPv4 configuration method used by a given interface. If you set this parameter to
False, no IPv4 configuration will be applied. Currently onlystatic(default) andFalseis supported.inet6Optional. IPv6 configuration method used by a given interface. If you set this parameter to
False, no IPv6 configuration will be applied. Currently onlystatic(default) andFalseis supported.addressoraddressesOptional. A string or a list of IPv4 and/or IPv6 addresses to set on a given network interface, in the form of
ipaddress/prefixor CIDR. Remember that you need to specify the host IP address and not the network; the192.0.2.1/24is the correct notation, and192.0.2.0/24is incorrect.gatewayorgatewaysOptional. Specify the IPv4 or IPv6 address of the network gateway to which outgoing packets will be directed. If it's a list of addresses, first valid address for a network type will be used as the gateway.
Examples
Configure eth0 with a global IPv6 address.
---
dropbear_initramfs__interfaces:
'eth0':
inet: False
inet6: 'static'
addresses:
- '2001:db8::23/64'
gateways:
- '2001:db8::'