[COOK-2997] adding support for internal repo

http://tickets.opscode.com/browse/COOK-2997