propellor-4.3.3: property-based host configuration management in haskell

Safe HaskellNone




cleanInterfacesFile :: Property DebianLike Source #

Resets etcnetwork/interfaces to a clean and empty state, containing just the standard loopback interface, and with interfacesD enabled.

This can be used as a starting point to defining other interfaces.

No interfaces are brought up or down by this property.

dhcp :: Interface -> Property DebianLike Source #

Configures an interface to get its address via dhcp.

static :: Interface -> Property DebianLike Source #

Writes a static interface file for the specified interface.

The interface has to be up already. It could have been brought up by DHCP, or by other means. The current ipv4 addresses and routing configuration of the interface are written into the file.

If the interface file already exists, this property does nothing, no matter its content.

(ipv6 addresses are not included because it's assumed they come up automatically in most situations.)

ipv6to4 :: Property DebianLike Source #

6to4 ipv6 connection, should work anywhere

interfaceDFile :: Interface -> FilePath Source #

A file in the interfaces.d directory.

escapeInterfaceDName :: Interface -> FilePath Source #

etcnetworkinterfaces.d files have to match -- ^[a-zA-Z0-9_-]+$ see "man 5 interfaces"

interfacesDEnabled :: Property DebianLike Source #

Ensures that files in the the interfaces.d directory are used. interfacesDEnabled :: Property DebianLike