racker/virgo — pull request #278 by russellhaering (2012-12-02 06:14:08+00:00)
Title: Bind Agent on Setup

Add a step to the setup procedure that will:

1. Retrieve a list of entities
2. Look for entities where the label matches the hostname, or with at least 1 IP address matching an address returned by sigar
3. Display the list to the user and allow them to choose an entity, or create a new one
4. If an existing entity is chosen, update its entity_id
5. If the user chooses to create a new one, populate label and agent_id with the hostname and ip_addresses with a hash built from sigar (excluding loopback devices)