Set nodename and interface based on ohai data, add fqdn->ipaddress fallback, and fix foodcritic error