Closed pedrohdz closed 7 years ago
Hmm, why the modification to the redhat section if it doesn't get changed at all?
Assuming you are referring to my renaming fqdn
to hostname
, putting the short name in the fqdn
variable just seems confusing. fqdn
is FQDN, not a short name where as a hostname
can be either the short name or the FQDN depending on the distribution.
As far as I can tell I only changed the variable name in the Redhat section, unless I slipped up?
I can change it back, or split it into two commits if needed?
Nah it doesn't really matter. I just wasn't sure if there was a reason for the change. Thanks for working on this.
It would be nice if there was a way to override this new functionality that changed backward compatibility. We actually put a shortened version of the fqdn in for hostname, and this would break that.
i.e. hostname = saltmaster.pop - fqdn = saltmaster.pop.example.com
Howdy! Sorry about the lagged response, holidays.
How about defaulting to the new "correct" behavior, and adding a switch to turn it off? Set the switch to have it use the old behavior on Ubuntu. Maybe call it debian_fqdn_hostname
?
Debian/Ubuntu use a short hostname, not the FQDN. References below:
https://www.debian.org/doc/manuals/debian-reference/ch03.en.html#_the_hostname
http://manpages.ubuntu.com/manpages/trusty/man1/hostname.1.html