--- lib/facter/domain.rb.orig 2019-06-11 04:26:10 UTC +++ lib/facter/domain.rb @@ -31,7 +31,7 @@ Facter.add(:domain) do basic_hostname = 'hostname 2> /dev/null' windows_hostname = 'hostname > NUL' full_hostname = 'hostname -f 2> /dev/null' - can_do_hostname_f = Regexp.union /Linux/i, /FreeBSD/i, /Darwin/i + can_do_hostname_f = Regexp.union /Linux/i, /FreeBSD/i, /Darwin/i, /BSDSUniX/i hostname_command = if Facter.value(:kernel) =~ can_do_hostname_f full_hostname