logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

cdist-type__hostname - Set the hostname

Authors

       Steven Armstrong <steven-cdist--@--armstrong.cc>

Copying

       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.

Description

       Sets the hostname on various operating systems.

       Tip: For advice on choosing a hostname, see RFC1178.

Examples

          # take hostname from __target_host
          __hostname

          # set hostname explicitly
          __hostname --name some-static-hostname

Messages

changed
              Changed the hostname

Name

       cdist-type__hostname - Set the hostname

Optional Parameters

name   The hostname to set. Defaults to the first segment of __target_host (${__target_host%%.*})

Required Parameters

       None.

See Also