Use facter to retrieve the hostname