2014-01-20 12:47:45 +00:00
|
|
|
cdist-type__hostname(7)
|
|
|
|
=======================
|
|
|
|
Steven Armstrong <steven-cdist--@--armstrong.cc>
|
|
|
|
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
cdist-type__hostname - set the hostname
|
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
Set's the hostname on various operating systems.
|
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
|
|
|
None.
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
|
|
|
name::
|
|
|
|
The hostname to set. Defaults to the first segment of __target_host
|
|
|
|
(${__target_host%%.*})
|
|
|
|
|
|
|
|
|
2014-01-20 13:26:22 +00:00
|
|
|
MESSAGES
|
|
|
|
--------
|
|
|
|
changed::
|
|
|
|
Changed the hostname
|
|
|
|
|
2014-01-20 12:47:45 +00:00
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
# take hostname from __target_host
|
|
|
|
__hostname
|
|
|
|
|
|
|
|
# set hostname explicitly
|
|
|
|
__hostname --name some-static-hostname
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
- cdist-type(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).
|