main: Add metadata to nodes based on the hostname, wanted units and tags