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