cdist/cdist/conf/type/__hostname/man.rst

56 lines
1017 B
ReStructuredText
Raw Normal View History

cdist-type__hostname(7)
=======================
NAME
----
cdist-type__hostname - Set the hostname
DESCRIPTION
-----------
Sets the hostname on various operating systems.
**Tip:** For advice on choosing a hostname, see
`RFC 1178 <https://tools.ietf.org/html/rfc1178>`_.
REQUIRED PARAMETERS
-------------------
None.
OPTIONAL PARAMETERS
-------------------
2016-05-20 06:50:56 +00:00
name
The hostname to set. Defaults to the first segment of __target_host
(${__target_host%%.*})
MESSAGES
--------
2016-05-20 06:50:56 +00:00
changed
Changed the hostname
EXAMPLES
--------
2016-05-20 06:50:56 +00:00
.. code-block:: sh
# take hostname from __target_host
__hostname
2016-05-20 06:50:56 +00:00
# set hostname explicitly
__hostname --name some-static-hostname
AUTHORS
-------
Steven Armstrong <steven-cdist--@--armstrong.cc>
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.