propellor-0.9.2: 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 etchostname and the current hostname.

Configures etcmailname with the domain part of the hostname.

etchosts is also configured, with an entry for 127.0.1.1, which is standard at least on Debian to set the FDQN.

Also, the etchosts 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 etcresolv.conf contain search and domain lines for the domain that the hostname is in.