Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write short form hostname #922

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on May 11, 2023

  1. Write short form hostname

    While setting the hostname as a FQDN is perfectly valid, in most cases
    the expectation is that /etc/hostname holds the short form hostname and
    the FQDN is added as a canonical hostname, i.e. as the first column in
    /etc/hosts after the local IP address.
    
    This will allow clients to use:
    
      hostname -f
    
    to get the fqdn and still be able to get the host form hostname by
    calling:
    
      hostname
    
    Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
    gabriel-samfira committed May 11, 2023
    Configuration menu
    Copy the full SHA
    fd6bf73 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2023

  1. Add --short command line option

    The --short command line option is a bool which requires the --hostname
    option and which will toggles writing the short form hostname to
    /etc/hostname.
    
    Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
    gabriel-samfira committed May 12, 2023
    Configuration menu
    Copy the full SHA
    84f851d View commit details
    Browse the repository at this point in the history