DOKK / manpages / debian 12 / cdist / cdist-type__hostname.7.en
CDIST-TYPE__HOSTNAME(7) cdist CDIST-TYPE__HOSTNAME(7)

cdist-type__hostname - Set the hostname

Sets the hostname on various operating systems.

Tip: For advice on choosing a hostname, see RFC 1178.

None.

The hostname to set. Defaults to the first segment of __target_host (${__target_host%%.*})

Changed the hostname

# take hostname from __target_host
__hostname
# set hostname explicitly
__hostname --name some-static-hostname


Steven Armstrong <steven-cdist--@--armstrong.cc>

Copyright (C) 2012 Steven Armstrong. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

ungleich GmbH 2021

January 15, 2023 7.0.0