code: def get_ceph_nodes(relation='ceph'):
      
      hosts = []
      for r_id in relation_ids(relation):
          for unit in related_units(r_id):
              hosts.append(relation_get('private-address', unit=unit, rid=r_id))
  
      return hosts
docs: Query named relation to determine current nodes.