the puppet agent gets the ip of the puppetmaster using etcd. For now the request is made using curl and it should be changed in the future to a more robust solution