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
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2019-10-26 15:12:08 +00:00
|
|
|
Sets the hostname on various operating systems.
|
|
|
|
|
|
|
|
**Tip:** For advice on choosing a hostname, see
|
|
|
|
`RFC 1178 <https://tools.ietf.org/html/rfc1178>`_.
|
2014-01-20 12:47:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
|
|
|
None.
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
name
|
2019-10-26 15:12:08 +00:00
|
|
|
The hostname to set. Defaults to the first segment of __target_host
|
2014-01-20 12:47:45 +00:00
|
|
|
(${__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
|
|
|
|
|
|
|
|
2016-06-17 19:28:16 +00:00
|
|
|
AUTHORS
|
|
|
|
-------
|
|
|
|
Steven Armstrong <steven-cdist--@--armstrong.cc>
|
2014-01-20 12:47:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
2016-08-10 16:15:54 +00:00
|
|
|
Copyright \(C) 2012 Steven Armstrong. You can redistribute it
|
|
|
|
and/or modify it under the terms of the GNU General Public License as
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
License, or (at your option) any later version.
|