code: def _parse_hostname(self):
          
          value = 'localhost'
          match = re.search(r'^hostname ([^\s]+)$', self.config, re.M)
          if match:
              value = match.group(1)
          return dict(hostname=value)
docs: Parses the global config and returns the hostname value
  
          Returns:
              dict: The configured value for hostname.  The returned dict
                  object is intended to be merged into the resource dict