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

Safe HaskellNone




cleanInterfacesFile :: Property NoInfo 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 NoInfo Source

Configures an interface to get its address via dhcp.

static :: Interface -> Property NoInfo 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 NoInfo Source

6to4 ipv6 connection, should work anywhere

interfaceDFile :: Interface -> FilePath Source

A file in the interfaces.d directory.

interfacesDEnabled :: Property NoInfo Source

Ensures that files in the the interfaces.d directory are used.