The Brewers have signed 23-year-old right-hander Freddy Peralta to a five-year contract extension, a source told ESPN.