13.34. cdist-type__hostname(7)¶
13.34.1. NAME¶
cdist-type__hostname - Set the hostname
13.34.2. DESCRIPTION¶
Set’s the hostname on various operating systems.
13.34.3. REQUIRED PARAMETERS¶
None.
13.34.4. OPTIONAL PARAMETERS¶
- name
- The hostname to set. Defaults to the first segment of __target_host (${__target_host%%.*})
13.34.5. MESSAGES¶
- changed
- Changed the hostname
13.34.6. EXAMPLES¶
# take hostname from __target_host
__hostname
# set hostname explicitly
__hostname --name some-static-hostname
13.34.7. AUTHORS¶
Steven Armstrong <steven-cdist--@--armstrong.cc>
13.34.8. 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).