48. cdist-type__hostname(7)¶
Set the hostname
Steven Armstrong <steven-cdist--@--armstrong.cc>
48.1. DESCRIPTION¶
Set’s the hostname on various operating systems.
48.2. REQUIRED PARAMETERS¶
None.
48.3. OPTIONAL PARAMETERS¶
- name
- The hostname to set. Defaults to the first segment of __target_host (${__target_host%%.*})
48.4. MESSAGES¶
- changed
- Changed the hostname
48.5. EXAMPLES¶
# take hostname from __target_host
__hostname
# set hostname explicitly
__hostname --name some-static-hostname
48.6. SEE ALSO¶
48.7. COPYING¶
Copyright (C) 2012 Steven Armstrong. Free use of this software is granted under the terms of the GNU General Public License version 3 (GPLv3).