hostname

set the host name

The check compares name with the static name in /etc/hostname and with the running name. When one of them differs, the step sets the name.

Keys

KeyTypeDefaultMeaning
namestringrequiredshort name, such as mail

hostname.name

string, required

Short name, such as mail.

Example

- hostname:
    name: mail