Adding check for public ip in puppet agent startup