servers:
server1:
host: 1.1.1.1
node: 1
server2:
host: 1.1.1.2
node: 2
I have an erb template that needs the node id where the it address belongs to the machine it is running on. Is there a way in ruby to select the node value the host matches a value returned from facter?