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

Safe HaskellNone
LanguageHaskell98

Propellor.Property.Hostname

Synopsis

Documentation

sane :: Property 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 127.0.1.1, which is standard at least on Debian to set the FDQN.

Also, the /etc/hosts 127.0.0.1 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 Source

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