You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code for the resource always uses "hostname" for all values passed to scutil and ignores the existence of fqdn in the recipe. It is written to assume that the "hostname" value is the FQDN (which it is not, and should not be). You can see that by the "shortname" variable created by trying to split off the first label of the hostname which it thinks is the FQDN...
e.g.,
hostname macbook do
fqdn macbook.example.com
end
Will always force the MacOS client to have a hostname of macbook and the FQDN is never applied. This does behave correctly on Linux hosts, for example.
The text was updated successfully, but these errors were encountered:
Hostname, Domain name, and FQDNs should always be considered 3 separate values but I seem to run into this type of problem everywhere 馃槶馃ゴ
chef/lib/chef/resource/hostname.rb
Lines 164 to 181 in 4ce99c4
The code for the resource always uses "hostname" for all values passed to
scutil
and ignores the existence offqdn
in the recipe. It is written to assume that the "hostname" value is the FQDN (which it is not, and should not be). You can see that by the "shortname" variable created by trying to split off the first label of the hostname which it thinks is the FQDN...e.g.,
Will always force the MacOS client to have a hostname of
macbook
and the FQDN is never applied. This does behave correctly on Linux hosts, for example.The text was updated successfully, but these errors were encountered: