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

Safe HaskellNone




sane :: Property NoInfo Source

Ensures that the hostname is set using best practices.

Configures /etc/hostname and the current hostname.

Configures /etc/mailname with the domain part of the hostname.

/etc/hosts is also configured, with an entry for, which is standard at least on Debian to set the FDQN.

Also, the /etc/hosts line is set to localhost. Putting any other hostnames there is not best practices and can lead to annoying messages from eg, apache.

searchDomain :: Property NoInfo Source

Makes /etc/resolv.conf contain search and domain lines for the domain that the hostname is in.