def ip_env_var(site, destination, node_type):
  """Form the environment variable name from the function arguments"""
  return f'{destination.upper()}_{site.upper()}_ELASTIC_{"VOTER_" if node_type == "voter" else ""}IP'