cdist-type__hostname - set the hostname
Set’s the hostname on various operating systems.
-
name
-
The hostname to set. Defaults to the first segment of target_host
(${target_host%%.*})
-
changed
-
Changed the hostname
# take hostname from __target_host
__hostname
# set hostname explicitly
__hostname --name some-static-hostname
Copyright (C) 2012 Steven Armstrong. Free use of this software is
granted under the terms of the GNU General Public License version 3 (GPLv3).