changed the ip gathering from data bags to chef api