# Lets determin who the customer is by looking at the hostname
function sunetdrive::get_customer() >> String {
  $hostnameparts = split($facts['networking']['fqdn'],'\.')
  if $hostnameparts[1] ==  'drive' {
    return 'common'
  } elsif $hostnameparts[0] =~ /idp-proxy/ {
    return 'common'
  }

  return $hostnameparts[1]
}